Merge "Using WindowInsets API to hide keyboard on LockScreen when screen-off" into sc-dev
This commit is contained in:
@@ -27,6 +27,7 @@ import android.text.method.TextKeyListener;
|
|||||||
import android.view.KeyEvent;
|
import android.view.KeyEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup.MarginLayoutParams;
|
import android.view.ViewGroup.MarginLayoutParams;
|
||||||
|
import android.view.WindowInsets;
|
||||||
import android.view.inputmethod.EditorInfo;
|
import android.view.inputmethod.EditorInfo;
|
||||||
import android.view.inputmethod.InputMethodInfo;
|
import android.view.inputmethod.InputMethodInfo;
|
||||||
import android.view.inputmethod.InputMethodManager;
|
import android.view.inputmethod.InputMethodManager;
|
||||||
@@ -227,12 +228,12 @@ public class KeyguardPasswordViewController
|
|||||||
super.onPause();
|
super.onPause();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
mInputMethodManager.hideSoftInputFromWindow(mView.getWindowToken(), 0);
|
mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onStartingToHide() {
|
public void onStartingToHide() {
|
||||||
mInputMethodManager.hideSoftInputFromWindow(mView.getWindowToken(), 0);
|
mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateSwitchImeButton() {
|
private void updateSwitchImeButton() {
|
||||||
|
|||||||
Reference in New Issue
Block a user