Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d062bc3 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 27426 into eclair

* changes:
  Handle the case where GoogleLocationSettingObserver::onChange is called after GoogleLocationSettingObserver::doNotObserve().
parents 0d03b914 7885381f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -200,7 +200,11 @@ class GoogleLocationSettingManager {

        @Override
        public void onChange(boolean selfChange) {
            // This may come after the call to doNotObserve() above,
            // so mContext may be null.
            if (mContext != null) {
                maybeApplySetting(mContext);
            }
        }
    }
}