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

Commit c3659313 authored by Anushree Ganjam's avatar Anushree Ganjam
Browse files

Introduce imeHeight in KeyboardStateManager.

Bug: 204781396
Test: Manual
Change-Id: If9dc9427a73ab22d6418edb9c954e79fd0958395
parent b63cc3f1
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -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;
    }
}