Fix crash when adding account

Remove the listener in onStop(), to be symmetrical with onStart().

Bug: 14393261
Change-Id: I5d4f0ca38d5ef52b97715b8f3791ff2a400c68e2
This commit is contained in:
Amith Yamasani
2014-04-30 10:38:56 -07:00
committed by The Android Automerger
parent dbe0b221f2
commit b1d4e7ee7c

View File

@@ -127,8 +127,8 @@ public class DashboardSummary extends Fragment implements OnAccountsUpdateListen
}
@Override
public void onPause() {
super.onPause();
public void onStop() {
super.onStop();
AccountManager.get(getActivity()).removeOnAccountsUpdatedListener(this);
}