Merge "Fix an NPE for monkey stability."
This commit is contained in:
committed by
Android (Google) Code Review
commit
73e70721b0
@@ -231,6 +231,8 @@ public class ManageAccountsSettings extends AccountPreferenceBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void onSyncStateUpdated() {
|
protected void onSyncStateUpdated() {
|
||||||
|
// Catch any delayed delivery of update messages
|
||||||
|
if (getActivity() == null) return;
|
||||||
// Set background connection state
|
// Set background connection state
|
||||||
final ConnectivityManager connManager = (ConnectivityManager)
|
final ConnectivityManager connManager = (ConnectivityManager)
|
||||||
getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);
|
getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||||
|
Reference in New Issue
Block a user