зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1089653 - Make sure the search activity hasn't been destroyed before touching views in onAnimationEnd. r=mfinkle
--HG-- extra : rebase_source : 933da02719118c78528f4676710789bd64a8af49
This commit is contained in:
Родитель
c5a613003e
Коммит
15e7fe4b99
|
@ -340,6 +340,11 @@ public class SearchActivity extends Locales.LocaleAwareFragmentActivity
|
|||
|
||||
@Override
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
// Don't do anything if the activity is destroyed before the animation ends.
|
||||
if (SearchActivity.this.isDestroyed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
setEditState(EditState.WAITING);
|
||||
setSearchState(SearchState.POSTSEARCH);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче