Move lock screen setting behind gear
Bug: 19003093 Change-Id: I15baa5b1d19324521070d641ae6a227d782a4e9e
This commit is contained in:
@@ -39,6 +39,8 @@ abstract class SaveChosenLockWorkerBase extends Fragment {
|
||||
protected boolean mWasSecureBefore;
|
||||
protected int mUserId;
|
||||
|
||||
private boolean mBlocking;
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
@@ -74,7 +76,11 @@ abstract class SaveChosenLockWorkerBase extends Fragment {
|
||||
}
|
||||
|
||||
protected void start() {
|
||||
new Task().execute();
|
||||
if (mBlocking) {
|
||||
finish(saveAndVerifyInBackground());
|
||||
} else {
|
||||
new Task().execute();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -91,6 +97,10 @@ abstract class SaveChosenLockWorkerBase extends Fragment {
|
||||
}
|
||||
}
|
||||
|
||||
public void setBlocking(boolean blocking) {
|
||||
mBlocking = blocking;
|
||||
}
|
||||
|
||||
private class Task extends AsyncTask<Void, Void, Intent> {
|
||||
@Override
|
||||
protected Intent doInBackground(Void... params){
|
||||
|
Reference in New Issue
Block a user