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

Commit 2e2e2b4a authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing widget label not being rendered in multi-window mode

Bug: 73709754
Change-Id: Id6342e3412c2b247e052bc45c01a484422a7c011
parent dd242429
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -249,6 +249,14 @@ public class DeviceProfile {
        return profile;
    }

    /**
     * Inverse of {@link #getMultiWindowProfile(Context, Point)}
     * @return device profile corresponding to the current orientation in non multi-window mode.
     */
    public DeviceProfile getFullScreenProfile() {
        return isLandscape ? inv.landscapeProfile : inv.portraitProfile;
    }

    /**
     * Adjusts the profile so that the labels on the Workspace are hidden.
     * It is important to call this method after the All Apps variables have been set.
+2 −1
Original line number Diff line number Diff line
@@ -44,7 +44,8 @@ public class DeferredAppWidgetHostView extends LauncherAppWidgetHostView {
        mPaint = new TextPaint();
        mPaint.setColor(Color.WHITE);
        mPaint.setTextSize(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_PX,
                mLauncher.getDeviceProfile().iconTextSizePx, getResources().getDisplayMetrics()));
                mLauncher.getDeviceProfile().getFullScreenProfile().iconTextSizePx,
                getResources().getDisplayMetrics()));
        setBackgroundResource(R.drawable.bg_deferred_app_widget);
    }