Merge change 27426 into eclair
* changes: Handle the case where GoogleLocationSettingObserver::onChange is called after GoogleLocationSettingObserver::doNotObserve().
This commit is contained in:
@@ -200,7 +200,11 @@ class GoogleLocationSettingManager {
|
||||
|
||||
@Override
|
||||
public void onChange(boolean selfChange) {
|
||||
maybeApplySetting(mContext);
|
||||
// This may come after the call to doNotObserve() above,
|
||||
// so mContext may be null.
|
||||
if (mContext != null) {
|
||||
maybeApplySetting(mContext);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user