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

Commit 543c226f authored by Winson Chung's avatar Winson Chung
Browse files

Provide internal IME insets

Bug: 197727397
Test: Collapse taskbar, open IME
Change-Id: Ia251be1d5892a58b062f241bdafc5dbfc223e4c3
parent cb776ca5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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>
+5 −0
Original line number Diff line number Diff line
@@ -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;
@@ -163,6 +164,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();