Merge "Introduce imeHeight in KeyboardStateManager." into tm-qpr-dev

This commit is contained in:
Anushree Ganjam
2022-11-16 18:38:39 +00:00
committed by Android (Google) Code Review
@@ -24,6 +24,7 @@ import android.os.SystemClock;
*/
public class KeyboardStateManager {
private long mUpdatedTime;
private int mImeHeight;
public enum KeyboardState {
NO_IME_ACTION,
@@ -58,4 +59,18 @@ public class KeyboardStateManager {
mUpdatedTime = SystemClock.elapsedRealtime();
mKeyboardState = keyboardState;
}
/**
* Returns keyboard's current height.
*/
public int getImeHeight() {
return mImeHeight;
}
/**
* Setter method to set keyboard height.
*/
public void setImeHeight(int imeHeight) {
mImeHeight = imeHeight;
}
}