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

Commit cbc7168e authored by Mindy Pereira's avatar Mindy Pereira Committed by Android Git Automerger
Browse files

am 03f7f442: am cb54f978: Merge "Update window alpha at the same time as...

am 03f7f442: am cb54f978: Merge "Update window alpha at the same time as translating" into klp-modular-dev

* commit '03f7f442':
  Update window alpha at the same time as translating
parents 0d870c11 03f7f442
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3580,6 +3580,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
                            SwipeDismissLayout layout, float progress, float translate) {
                        WindowManager.LayoutParams newParams = getAttributes();
                        newParams.x = (int) translate;
                        newParams.alpha = 1 - progress;
                        setAttributes(newParams);

                        int flags = 0;
@@ -3595,6 +3596,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
                    public void onSwipeCancelled(SwipeDismissLayout layout) {
                        WindowManager.LayoutParams newParams = getAttributes();
                        newParams.x = 0;
                        newParams.alpha = 1;
                        setAttributes(newParams);
                        setFlags(FLAG_FULLSCREEN, FLAG_FULLSCREEN | FLAG_LAYOUT_NO_LIMITS);
                    }