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

Commit 879cbb1f authored by Cosmin Băieș's avatar Cosmin Băieș
Browse files

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
parent d6f39e3f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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)