Fixed
Status Update
Comments
yb...@google.com <yb...@google.com>
yb...@google.com <yb...@google.com>
yb...@google.com <yb...@google.com>
yb...@google.com <yb...@google.com>
sh...@google.com <sh...@google.com>
sh...@google.com <sh...@google.com> #4
FYI, I took the clustering example from the Google Maps API Guides page at...
https://developers.google.com/maps/documentation/javascript/marker-clustering
... and I changed the Google Maps version to v=3.exp
... and hosted the result athttp://www.GaryLittle.ca/mc-bug.html
Load this address in your iOS browser (Safari) and try clicking any of the clusters. Nothing happens.
This code uses the old MarkerClusterer but I'm sure the behaviour will be identical if using MarkerClustererPlus.
... and I changed the Google Maps version to v=3.exp
... and hosted the result at
Load this address in your iOS browser (Safari) and try clicking any of the clusters. Nothing happens.
This code uses the old MarkerClusterer but I'm sure the behaviour will be identical if using MarkerClustererPlus.
sh...@google.com <sh...@google.com>
yb...@google.com <yb...@google.com> #5
I've just verified that this problem also affects Android devices (running Chrome).
Description
Version used: 1.0.0-alpha9
Devices/Android versions reproduced on: Android 5 (it works on Android 8)
I have a strange problem connected to a MutableLiveData that doesn't trigger the observer when updated in onActivityResult. The cause seems to be a wrong state in LifecycleRegistry, in the following example the println in onResume prints "resume CREATED". Between startActivityForResult and onResume the state is set to CREATED even if the Activity remains always started (because the other activity is not full screen).
You can reproduce this issue using this Activity:
class LiveDataTestActivity : AppCompatActivity(), LifecycleRegistryOwner {
private val lifecycle = LifecycleRegistry(this)
override fun getLifecycle() = lifecycle
private val myLiveData = MutableLiveData<Int>().apply { value = 0 }
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val textView = TextView(this).apply {
text = "AAAA"
setOnClickListener {
val sendIntent = Intent().apply {
action = Intent.ACTION_SEND
putExtra(Intent.EXTRA_TEXT, "This is my text to send.")
type = "text/plain"
}
startActivityForResult(sendIntent, 123)
}
}
setContentView(textView)
myLiveData.observe(this, Observer<Int> {
textView.text = it.toString()
})
}
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
myLiveData.value = (myLiveData.value ?: 0) + 1
println("Value ${myLiveData.value}")
}
override fun onResume() {
super.onResume()
println("resume ${lifecycle.currentState}")
}
}