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:
@@ -127,8 +127,8 @@ public class DashboardSummary extends Fragment implements OnAccountsUpdateListen
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPause() {
|
public void onStop() {
|
||||||
super.onPause();
|
super.onStop();
|
||||||
|
|
||||||
AccountManager.get(getActivity()).removeOnAccountsUpdatedListener(this);
|
AccountManager.get(getActivity()).removeOnAccountsUpdatedListener(this);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user