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

Commit 2967f31e authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Clean up surface if button is hidden" into main

parents 5ab29ad3 0b2c9f07
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -146,3 +146,13 @@ flag {
  bug: "372848702"
  is_exported: true
}

flag {
  name: "release_user_aspect_ratio_wm"
  namespace: "large_screen_experiences_app_compat"
  description: "Whether to release UserAspectRatioSettingsWindowManager when button is hidden"
  bug: "385049711"
  metadata {
    purpose: PURPOSE_BUGFIX
  }
}
 No newline at end of file
+4 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.android.window.flags.Flags;
import com.android.wm.shell.R;

/**
@@ -172,6 +173,9 @@ public class UserAspectRatioSettingsLayout extends LinearLayout {
            @Override
            public void onAnimationEnd(Animator animation) {
                view.setVisibility(View.GONE);
                if (Flags.releaseUserAspectRatioWm()) {
                    mWindowManager.release();
                }
            }
        });
        fadeOut.start();