Commit f6b069b9 authored by Mattias Petersson's avatar Mattias Petersson Committed by android-build-merger
Browse files

Only select Wi-fi when needed

am: 1b33c118

Change-Id: I23eec4dbb07f97a942212e52e2486a0d6a065a84
parents 58116e4f 1b33c118
......@@ -251,7 +251,8 @@ public class PreProvisioningController {
if (mKeyguardManager.inKeyguardRestrictedInputMode()) {
ProvisionLogger.logi("Cannot pick wifi because the screen is locked.");
// Have the user pick a wifi network if necessary.
} else if (!mUtils.isConnectedToNetwork(mContext) && mParams.wifiInfo == null) {
} else if (!mUtils.isConnectedToNetwork(mContext) && mParams.wifiInfo == null
&& mParams.deviceAdminDownloadInfo != null) {
if (canRequestWifiPick()) {
mUi.requestWifiPick();
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment