DescriptionAutofillPreferences: Modify UI only when it's available.
If an autofill profile changes when AutofillPreferences fragment is
alive, but its view has been destroyed, then AutofillPreferences crashes
as it tries to update the destroyed view. The fix is to start observing
profile changes in onActivityCreated and stop in onDestroyView.
http://developer.android.com/reference/android/app/Fragment.html#Lifecycle
BUG=539962
Committed: https://crrev.com/7a320d9e42ea2648c07fd7770b157332f15af324
Cr-Commit-Position: refs/heads/master@{#353942}
Patch Set 1 #
Messages
Total messages: 8 (2 generated)
|