|
@@ -34,6 +34,7 @@ import android.text.TextWatcher;
|
|
|
import android.view.KeyEvent;
|
|
|
import android.view.View;
|
|
|
import android.view.View.OnClickListener;
|
|
|
+import android.view.Window;
|
|
|
import android.view.inputmethod.InputMethodManager;
|
|
|
import android.widget.Button;
|
|
|
import android.widget.EditText;
|
|
@@ -99,8 +100,7 @@ public class PassCodeActivity extends AppCompatActivity {
|
|
|
mPassCodeEditTexts[0].setTextColor(elementColor);
|
|
|
mPassCodeEditTexts[0].getBackground().setColorFilter(elementColor, PorterDuff.Mode.SRC_ATOP);
|
|
|
mPassCodeEditTexts[0].requestFocus();
|
|
|
- getWindow().setSoftInputMode(android.view.WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
|
|
|
-
|
|
|
+
|
|
|
mPassCodeEditTexts[1] = findViewById(R.id.txt1);
|
|
|
mPassCodeEditTexts[1].setTextColor(elementColor);
|
|
|
mPassCodeEditTexts[1].getBackground().setColorFilter(elementColor, PorterDuff.Mode.SRC_ATOP);
|
|
@@ -113,8 +113,9 @@ public class PassCodeActivity extends AppCompatActivity {
|
|
|
mPassCodeEditTexts[3].setTextColor(elementColor);
|
|
|
mPassCodeEditTexts[3].getBackground().setColorFilter(elementColor, PorterDuff.Mode.SRC_ATOP);
|
|
|
|
|
|
- if (getWindow() != null) {
|
|
|
- getWindow().setSoftInputMode(android.view.WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
|
|
|
+ Window window = getWindow();
|
|
|
+ if (window != null) {
|
|
|
+ window.setSoftInputMode(android.view.WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
|
|
|
}
|
|
|
|
|
|
if (ACTION_CHECK.equals(getIntent().getAction())) {
|