|
|
|
@ -6,10 +6,8 @@ import android.content.ClipData;
|
|
|
|
|
import android.content.ClipboardManager;
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
import android.content.DialogInterface;
|
|
|
|
|
import android.content.Intent;
|
|
|
|
|
import android.content.res.ColorStateList;
|
|
|
|
|
import android.graphics.Color;
|
|
|
|
|
import android.provider.Settings;
|
|
|
|
|
import android.text.Editable;
|
|
|
|
|
import android.text.InputType;
|
|
|
|
|
import android.text.TextWatcher;
|
|
|
|
@ -124,6 +122,7 @@ public class Dialogs {
|
|
|
|
|
.setPositiveButton(android.R.string.ok, null)
|
|
|
|
|
.setNegativeButton(android.R.string.cancel, null)
|
|
|
|
|
.create();
|
|
|
|
|
dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
|
|
|
|
|
|
|
|
|
|
final AtomicReference<Button> buttonOK = new AtomicReference<>();
|
|
|
|
|
dialog.setOnShowListener(d -> {
|
|
|
|
@ -203,6 +202,7 @@ public class Dialogs {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AlertDialog dialog = builder.create();
|
|
|
|
|
dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
|
|
|
|
|
showSecureDialog(dialog);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|