Merge "Provide internal IME insets" into sc-v2-dev am: 507e976690

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15741860

Change-Id: I4adf6cb6bbaadfa0520a7ad0a58fd8bf3251f4a3
This commit is contained in:
Winson Chung
2021-09-03 23:59:47 +00:00
committed by Automerger Merge Worker
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -157,7 +157,7 @@
<dimen name="accessibility_gesture_min_swipe_distance">80dp</dimen>
<!-- Taskbar -->
<dimen name="taskbar_size">60dp</dimen>
<dimen name="taskbar_size">@*android:dimen/taskbar_frame_height</dimen>
<dimen name="taskbar_icon_touch_size">48dp</dimen>
<dimen name="taskbar_icon_drag_icon_size">54dp</dimen>
<dimen name="taskbar_folder_margin">16dp</dimen>
@@ -27,6 +27,7 @@ import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.content.pm.LauncherApps;
import android.graphics.Insets;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.os.Process;
@@ -167,6 +168,10 @@ public class TaskbarActivityContext extends ContextThemeWrapper implements Activ
mWindowLayoutParams,
new int[] { ITYPE_EXTRA_NAVIGATION_BAR, ITYPE_BOTTOM_TAPPABLE_ELEMENT }
);
// Adjust the frame by the rounded corners (ie. leaving just the bar as the inset) when
// the IME is showing
mWindowLayoutParams.providedInternalImeInsets = Insets.of(0,
getDefaultTaskbarWindowHeight() - mDeviceProfile.taskbarSize, 0, 0);
// Initialize controllers after all are constructed.
mControllers.init();