diff options
author | Hiroaki Kuriyama <hiroaki.kuriyama@sonymobile.com> | 2015-10-09 16:30:03 +0200 |
---|---|---|
committer | Zoran Jovanovic <zoran.jovanovic@sonymobile.com> | 2015-12-24 00:52:44 +0100 |
commit | 8d3e159b3baa13adeee1d12f040842d49166ffdb (patch) | |
tree | d501ee0dce7eb01a77ccbbf760a5ad9717331803 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 738a557d54153eedc74aee3dfb128f84e8ca13d4 (diff) |
onAccountsUpdated shouldn't be called back after listener unregistered
There is a problem of AccountManager that onAccountsUpdated() is
called back even after the OnAccountsUpdatedListener is unregistered.
It may cause application crash.
For example, when rotating a tablet 180 degree with Settings apk
running, com.android.settings.Settings is re-launched 2 times
successively. (Destroy->Create->Destroy->Create)
It repeats adding&removing OnAccountUpdatedListener.
When dialog was being opened in the following cases,
NullPointerException at BackStackRecord.getBreadCrumbTitle()
was happened on 10 inch tablet which has 2 panes on Settings.
* Settings > Language&input > Language
* Settings > Language & input > Text-to-speech output > Speech rate
* Settings > Wi-Fi > Menu > Advanced > Keep Wi-Fi on during sleep
* Settings > Wi-Fi > Menu > Wi-Fi Direct > Rename device
This fix prevents the undesirable callback.
Change-Id: I081f69c90539cca821cf686b4587495135f375e4
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions