Merge "Introduce imeHeight in KeyboardStateManager." into tm-qpr-dev am: 9dd595b972
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20454485 Change-Id: I3cd0ff7cc56a3924ad33e3ab344dae5b15828e7b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user