diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt b/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt index 325a0d3e91..a8ce10f40a 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt @@ -21,7 +21,6 @@ import android.graphics.Insets import android.graphics.Paint import android.graphics.Rect import android.graphics.Region -import android.inputmethodservice.InputMethodService.ENABLE_HIDE_IME_CAPTION_BAR import android.os.Binder import android.os.IBinder import android.view.DisplayInfo @@ -259,7 +258,7 @@ class TaskbarInsetsController(val context: TaskbarActivityContext) : LoggableTas // When in gesture nav, report the stashed height to the IME, to allow hiding the // IME navigation bar. val imeInsetsSize = - if (ENABLE_HIDE_IME_CAPTION_BAR && context.isGestureNav) { + if (context.isGestureNav) { getInsetsForGravity(controllers.taskbarStashController.stashedHeight, gravity) } else { getInsetsForGravity(taskbarHeightForIme, gravity)