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

Commit 032d8126 authored by Mariia Sandrikova's avatar Mariia Sandrikova Committed by Automerger Merge Worker
Browse files

Merge "Shows "App isn't installed" while tapping on Home" into tm-qpr-dev am:...

Merge "Shows "App isn't installed" while tapping on Home" into tm-qpr-dev am: ce6fe0e5 am: 33269d1d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20580386



Change-Id: I010fa49765109554a133b472fce26ab157dab176
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents af14384c 33269d1d
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -285,14 +285,17 @@ final class LetterboxUiController {
    }

    float getSplitScreenAspectRatio() {
        // Getting the same aspect ratio that apps get in split screen.
        final DisplayContent displayContent = mActivityRecord.getDisplayContent();
        if (displayContent == null) {
            return getDefaultMinAspectRatioForUnresizableApps();
        }
        int dividerWindowWidth =
                getResources().getDimensionPixelSize(R.dimen.docked_stack_divider_thickness);
        int dividerInsets =
                getResources().getDimensionPixelSize(R.dimen.docked_stack_divider_insets);
        int dividerSize = dividerWindowWidth - dividerInsets * 2;

        // Getting the same aspect ratio that apps get in split screen.
        Rect bounds = new Rect(mActivityRecord.getDisplayContent().getBounds());
        final Rect bounds = new Rect(displayContent.getBounds());
        if (bounds.width() >= bounds.height()) {
            bounds.inset(/* dx */ dividerSize / 2, /* dy */ 0);
            bounds.right = bounds.centerX();