Merge "Cleanup ENABLE_HIDE_IME_CAPTION_BAR flag" into main
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user