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

Commit 745d20f6 authored by Graciela Putri's avatar Graciela Putri
Browse files

Remove flag allow_hide_scm_button.

Flag: EXEMPT flag removal
Test: Built & tested on device.
Fix: 409606852
Change-Id: I00f1b10e55229ef336b7e9dd53e7fd6cbbfc5d5b
parent c9bf76c9
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -57,13 +57,6 @@ flag {
  is_fixed_read_only: true
}

flag {
  name: "allow_hide_scm_button"
  namespace: "large_screen_experiences_app_compat"
  description: "Whether we should allow hiding the size compat restart button"
  bug: "318840081"
}

flag {
  name: "camera_compat_for_freeform"
  namespace: "large_screen_experiences_app_compat"
+1 −3
Original line number Diff line number Diff line
@@ -31,7 +31,6 @@ import android.view.View;
import android.window.DesktopModeFlags;

import com.android.internal.annotations.VisibleForTesting;
import com.android.window.flags.Flags;
import com.android.wm.shell.R;
import com.android.wm.shell.ShellTaskOrganizer;
import com.android.wm.shell.common.DisplayLayout;
@@ -201,8 +200,7 @@ class CompatUIWindowManager extends CompatUIWindowManagerAbstract {
    @VisibleForTesting
    boolean shouldShowSizeCompatRestartButton(@NonNull TaskInfo taskInfo) {
        // Always show button if display is phone sized.
        if (!Flags.allowHideScmButton() || taskInfo.configuration.smallestScreenWidthDp
                < LARGE_SCREEN_SMALLEST_SCREEN_WIDTH_DP) {
        if (taskInfo.configuration.smallestScreenWidthDp < LARGE_SCREEN_SMALLEST_SCREEN_WIDTH_DP) {
            return true;
        }

+0 −1
Original line number Diff line number Diff line
@@ -399,7 +399,6 @@ public class CompatUIWindowManagerTest extends ShellTestCase {

    @Test
    @RequiresFlagsDisabled(FLAG_APP_COMPAT_UI_FRAMEWORK)
    @EnableFlags(Flags.FLAG_ALLOW_HIDE_SCM_BUTTON)
    public void testShouldShowSizeCompatRestartButton() {
        doReturn(85).when(mCompatUIConfiguration).getHideSizeCompatRestartButtonTolerance();
        mWindowManager = new CompatUIWindowManager(mContext, mTaskInfo, mSyncTransactionQueue,