diff options
| author | 2020-06-24 16:43:48 +0000 | |
|---|---|---|
| committer | 2020-06-24 16:43:48 +0000 | |
| commit | 8295b4b48f7862d490d95ba4263cd2c21dcde0fb (patch) | |
| tree | 811c7ad883e20bdbbe8c0292845af7c2b50eea88 | |
| parent | d0de34ea9e56b12a3d034785c6a7ac04f5c92fda (diff) | |
| parent | 2ded66dd29e142f8deb751e56f49d0a0dbe9f53a (diff) | |
DO NOT MERGE: Call handleInitialize() in the end of constructor am: aa4ec3c808 am: 2ded66dd29
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11960757
Change-Id: I6b9f599f04d02f9616c1c2b84e584d3aea987a16
| -rw-r--r-- | services/core/java/com/android/server/location/gnss/GnssLocationProvider.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/location/gnss/GnssLocationProvider.java b/services/core/java/com/android/server/location/gnss/GnssLocationProvider.java index d8acf0e331af..85544d0a1b02 100644 --- a/services/core/java/com/android/server/location/gnss/GnssLocationProvider.java +++ b/services/core/java/com/android/server/location/gnss/GnssLocationProvider.java @@ -678,8 +678,6 @@ public class GnssLocationProvider extends AbstractLocationProvider implements mNetworkConnectivityHandler = new GnssNetworkConnectivityHandler(context, GnssLocationProvider.this::onNetworkAvailable, mLooper, mNIHandler); - sendMessage(INITIALIZE_HANDLER, 0, null); - mGnssStatusListenerHelper = new GnssStatusListenerHelper(mContext, mHandler) { @Override protected boolean isAvailableInPlatform() { @@ -746,6 +744,8 @@ public class GnssLocationProvider extends AbstractLocationProvider implements setProperties(PROPERTIES); setAllowed(true); + + sendMessage(INITIALIZE_HANDLER, 0, null); } /** |