Status Update
Comments
ca...@google.com <ca...@google.com>
ca...@google.com <ca...@google.com> #2
Thank you for posting.
We are currently looking into this and will get back to you as soon as we have an update.
ca...@google.com <ca...@google.com> #3
Thank you for posting.
We have verified and logged this issue internally. Please note that we cannot give you any timelines, but you can star the issue to get notifications.
as...@gmail.com <as...@gmail.com> #4
as...@gmail.com <as...@gmail.com> #5
ca...@google.com <ca...@google.com> #6
We appreciate your patience.
Please note that the version before 3.5.0 can only support RectangularBounds
. If you want to use CircularBounds
, you can upgrade the version to have it. You may visit and check
Some notes were also added for
-
If you enable Places API (New), then both RectangularBounds and CircularBounds are supported.
-
If you enable Places API, then only RectangularBounds is supported.
as...@gmail.com <as...@gmail.com> #7
Note: Calls made using Place Autocomplete widgets always call Place Autocomplete, not Place Autocomplete (New); widget calls are not affected by the initialization method.
So this means that the widgets still won't work with CircularBounds?
Description
Demo repository:https://github.com/kaismic/AutocompleteSupportFragment-setLocationBias-bug-demo
Two main problematic classes:
com.google.android.libraries.places.widget.AutocompleteSupportFragment
com.google.android.libraries.places.api.model.CircularBounds
What steps will reproduce the problem?
AutocompleteSupportFragment
fragmentAutocompleteSupportFragment.setLocationBias(CircularBounds)
AutocompleteSupportFragment
fragmentjava.lang.AssertionError: Unknown LocationBias type.
This error should not occur according to this and this documentation:
The cause of this error is clear as I have decompiled the source code using Android Studio's Java Bytecode Decompiler and found the problem code:
This clearly shows that the private
zzc
method, only accepts aRectangularBounds
object, but notCircularBounds
.But in this documentation, it clearly says that
CircularBounds
is a subclass ofLocationBias
so it must also acceptCircularBounds
asLocationBias
Please fix this library code.