Merge "Add log about ChooseLockGeneric refusing to start"
This commit is contained in:
committed by
Android (Google) Code Review
commit
961f038c4d
@@ -183,6 +183,7 @@ public class ChooseLockGeneric extends SettingsActivity {
|
||||
super.onCreate(savedInstanceState);
|
||||
final Activity activity = getActivity();
|
||||
if (!Utils.isDeviceProvisioned(activity) && !canRunBeforeDeviceProvisioned()) {
|
||||
Log.i(TAG, "Refusing to start because device is not provisioned");
|
||||
activity.finish();
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user