Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c951dc23 authored by Ming-Shin Lu's avatar Ming-Shin Lu Committed by Automerger Merge Worker
Browse files

Merge "Using WindowInsets API to hide keyboard on LockScreen when screen-off"...

Merge "Using WindowInsets API to hide keyboard on LockScreen when screen-off" into sc-dev am: efda0f92 am: e3da7eb6

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15287621

Change-Id: I8e206cc9e3b452ac4cef1419e9d8915507e421d1
parents d9e09cc6 e3da7eb6
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.text.method.TextKeyListener;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup.MarginLayoutParams;
import android.view.WindowInsets;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputMethodInfo;
import android.view.inputmethod.InputMethodManager;
@@ -227,12 +228,12 @@ public class KeyguardPasswordViewController
                super.onPause();
            });
        }
        mInputMethodManager.hideSoftInputFromWindow(mView.getWindowToken(), 0);
        mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime());
    }

    @Override
    public void onStartingToHide() {
        mInputMethodManager.hideSoftInputFromWindow(mView.getWindowToken(), 0);
        mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime());
    }

    private void updateSwitchImeButton() {