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
parent 46900881d6
commit f5b3f3b445

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