Fix PhoneMonitor crash on WiFi only devices
This prevented SetupWizardExitActivity from running, leaving the tablet in non provisioned state. Change-Id: Ic3224b348b8ad4ec4c5f11d37f0bfc41b4249cd8
This commit is contained in:
@@ -144,6 +144,9 @@ public class PhoneMonitor {
|
||||
};
|
||||
|
||||
public static void initInstance(Context context) {
|
||||
if (!SetupWizardUtils.hasTelephony(context)) {
|
||||
return;
|
||||
}
|
||||
if (sInstance == null) {
|
||||
sInstance = new PhoneMonitor(context.getApplicationContext());
|
||||
}
|
||||
|
Reference in New Issue
Block a user