From 879cbb1ff4dd3d1e38a9cb64b240690b3474010e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosmin=20B=C4=83ie=C8=99?= Date: Fri, 25 Oct 2024 12:07:46 +0200 Subject: [PATCH] Cleanup ENABLE_HIDE_IME_CAPTION_BAR flag This flag has already been enabled for a while, and is included in releases, so we can clean it up now. Flag: EXEMPT cleanup Bug: 375571655 Test: atest InputMethodServiceTest#testRequestHideImeCaptionBar InputMethodServiceTest#testRequestHideThenShowImeCaptionBar InsetsSourceTest#testCalculateInsets_imeCaptionBar InsetsSourceTest#testCalculateInsets_imeCaptionBar InsetsSourceTest#testCalculateBoundingRects_imeCaptionBar InsetsSourceTesttestCalculateBoundingRects_imeCaptionBarFrameMisaligned_rectsFixedToBottom Change-Id: I809c69156c06ff5c06ca43ef4dd248f90d54f6d8 --- .../com/android/launcher3/taskbar/TaskbarInsetsController.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt b/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt index 058dd07430..b9ae8416ee 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 @@ -258,7 +257,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)