mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
modify code to be simpler
This commit is contained in:
parent
66fd64a0fc
commit
c7817b9302
1 changed files with 4 additions and 5 deletions
|
@ -101,12 +101,11 @@ public class PassCodeActivity extends ActionBarActivity {
|
||||||
if (savedInstanceState != null) {
|
if (savedInstanceState != null) {
|
||||||
mConfirmingPassCode = savedInstanceState.getBoolean(PassCodeActivity.KEY_CONFIRMING_PASSCODE);
|
mConfirmingPassCode = savedInstanceState.getBoolean(PassCodeActivity.KEY_CONFIRMING_PASSCODE);
|
||||||
mPassCodeDigits = savedInstanceState.getStringArray(PassCodeActivity.KEY_PASSCODE_DIGITS);
|
mPassCodeDigits = savedInstanceState.getStringArray(PassCodeActivity.KEY_PASSCODE_DIGITS);
|
||||||
|
}
|
||||||
if(mConfirmingPassCode){
|
if(mConfirmingPassCode){
|
||||||
//the app was in the passcodeconfirmation
|
//the app was in the passcodeconfirmation
|
||||||
requestPassCodeConfirmation();
|
requestPassCodeConfirmation();
|
||||||
}
|
}else{
|
||||||
}
|
|
||||||
if(savedInstanceState == null || (savedInstanceState != null && !mConfirmingPassCode)){
|
|
||||||
/// pass code preference has just been activated in Preferences;
|
/// pass code preference has just been activated in Preferences;
|
||||||
// will receive and confirm pass code value
|
// will receive and confirm pass code value
|
||||||
mPassCodeHdr.setText(R.string.pass_code_configure_your_pass_code);
|
mPassCodeHdr.setText(R.string.pass_code_configure_your_pass_code);
|
||||||
|
|
Loading…
Reference in a new issue