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

Commit 0f6c32af authored by George Mount's avatar George Mount Committed by Android (Google) Code Review
Browse files

Merge ""Back" with translucent window now sets ActivityOptions." into lmp-dev

parents 6bed40ed 9e183971
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5410,6 +5410,7 @@ public class Activity extends ContextThemeWrapper
            mTranslucentCallback = callback;
            mChangeCanvasToTranslucent =
                    ActivityManagerNative.getDefault().convertToTranslucent(mToken, options);
            WindowManagerGlobal.getInstance().changeCanvasOpacity(mToken, false);
            drawComplete = true;
        } catch (RemoteException e) {
            // Make callback return as though it timed out.
+0 −1
Original line number Diff line number Diff line
@@ -2890,7 +2890,6 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
            invalidate();

            int opacity = PixelFormat.OPAQUE;

            // Note: if there is no background, we will assume opaque. The
            // common case seems to be that an application sets there to be
            // no background so it can draw everything itself. For that,
+1 −1
Original line number Diff line number Diff line
@@ -10346,8 +10346,8 @@ public final class ActivityManagerService extends ActivityManagerNative
                final boolean translucentChanged = r.changeWindowTranslucency(false);
                if (translucentChanged) {
                    r.task.stack.convertToTranslucent(r);
                    mStackSupervisor.ensureActivitiesVisibleLocked(null, 0);
                }
                mStackSupervisor.ensureActivitiesVisibleLocked(null, 0);
                mWindowManager.setAppFullscreen(token, false);
                return translucentChanged;
            }