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:
Margaret Leibovic 2015-01-29 13:37:51 +01:00
Родитель c5a613003e
Коммит 15e7fe4b99
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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);