mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-27 08:01:50 +01:00
Cleanup
This commit is contained in:
@@ -454,22 +454,22 @@ public class FragmentSetup extends FragmentEx {
|
||||
|
||||
String password1 = etPassword1.getText().toString();
|
||||
String password2 = etPassword2.getText().toString();
|
||||
if (password1.equals(password2))
|
||||
if (TextUtils.isEmpty(password1))
|
||||
Snackbar.make(view, R.string.title_canceled, Snackbar.LENGTH_LONG).show();
|
||||
else {
|
||||
|
||||
if (TextUtils.isEmpty(password1))
|
||||
Snackbar.make(view, R.string.title_setup_password_missing, Snackbar.LENGTH_LONG).show();
|
||||
else {
|
||||
if (password1.equals(password2)) {
|
||||
if (requestCode == ActivitySetup.REQUEST_EXPORT)
|
||||
handleExport(data, password1);
|
||||
else
|
||||
handleImport(data, password1);
|
||||
}
|
||||
else
|
||||
Snackbar.make(view, R.string.title_setup_password_different, Snackbar.LENGTH_LONG).show();
|
||||
} else
|
||||
Snackbar.make(view, R.string.title_setup_password_different, Snackbar.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
})
|
||||
.show();
|
||||
} else
|
||||
Snackbar.make(view, R.string.title_canceled, Snackbar.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
|
||||
private void onMenuPrivacy() {
|
||||
|
||||
Reference in New Issue
Block a user