DO NOT MERGE: Call handleInitialize() in the end of constructor am: aa4ec3c808
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11960757 Change-Id: I8bd7246e31b02cf2d2ed84b221237c75bb1437dd
This commit is contained in:
@@ -678,8 +678,6 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
|
|||||||
mNetworkConnectivityHandler = new GnssNetworkConnectivityHandler(context,
|
mNetworkConnectivityHandler = new GnssNetworkConnectivityHandler(context,
|
||||||
GnssLocationProvider.this::onNetworkAvailable, mLooper, mNIHandler);
|
GnssLocationProvider.this::onNetworkAvailable, mLooper, mNIHandler);
|
||||||
|
|
||||||
sendMessage(INITIALIZE_HANDLER, 0, null);
|
|
||||||
|
|
||||||
mGnssStatusListenerHelper = new GnssStatusListenerHelper(mContext, mHandler) {
|
mGnssStatusListenerHelper = new GnssStatusListenerHelper(mContext, mHandler) {
|
||||||
@Override
|
@Override
|
||||||
protected boolean isAvailableInPlatform() {
|
protected boolean isAvailableInPlatform() {
|
||||||
@@ -746,6 +744,8 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
|
|||||||
|
|
||||||
setProperties(PROPERTIES);
|
setProperties(PROPERTIES);
|
||||||
setAllowed(true);
|
setAllowed(true);
|
||||||
|
|
||||||
|
sendMessage(INITIALIZE_HANDLER, 0, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user