diff options
-rw-r--r-- | service/java/com/android/server/wifi/hotspot2/PasspointProvisioner.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/hotspot2/PasspointProvisioner.java b/service/java/com/android/server/wifi/hotspot2/PasspointProvisioner.java index 80dc79952..d4ea894be 100644 --- a/service/java/com/android/server/wifi/hotspot2/PasspointProvisioner.java +++ b/service/java/com/android/server/wifi/hotspot2/PasspointProvisioner.java @@ -60,7 +60,7 @@ public class PasspointProvisioner { private final WfaKeyStore mWfaKeyStore; private final PasspointObjectFactory mObjectFactory; private final SystemInfo mSystemInfo; - private final RedirectListener mRedirectListener; + private RedirectListener mRedirectListener; private int mCurrentSessionId = 0; private int mCallingUid; private boolean mVerboseLoggingEnabled = false; @@ -74,7 +74,6 @@ public class PasspointProvisioner { mOsuServerConnection = objectFactory.makeOsuServerConnection(); mWfaKeyStore = objectFactory.makeWfaKeyStore(); mSystemInfo = objectFactory.getSystemInfo(context, wifiNative); - mRedirectListener = RedirectListener.createInstance(); mObjectFactory = objectFactory; } @@ -87,6 +86,7 @@ public class PasspointProvisioner { mOsuNetworkConnection.init(mProvisioningStateMachine.getHandler()); // Offload the heavy load job to another thread mProvisioningStateMachine.getHandler().post(() -> { + mRedirectListener = RedirectListener.createInstance(); mWfaKeyStore.load(); mOsuServerConnection.init(mObjectFactory.getSSLContext(TLS_VERSION), mObjectFactory.getTrustManagerImpl(mWfaKeyStore.get())); |