Hide freeform button from app menu in recents
When desktop windowing prototype is enabled, we should only be able to switch apps to freeform mode via the quick tile. Disabling other routes to put individual apps to freeform. Test: visually verified that freeform button is not visible when desktop windowing prototype flag is enabled Bug: 242906219 Change-Id: Ib1ce75969b67f30d82262927e2e4113fab2c4956
This commit is contained in:
1 parent
13aa345755
commit
6b31ed99d9
1 file changed
+3
-1
@@ -26,6 +26,7 @@ import android.graphics.Color;
|
||||
import android.graphics.Rect;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.os.SystemProperties;
|
||||
import android.view.View;
|
||||
import android.view.WindowInsets;
|
||||
import android.window.SplashScreen;
|
||||
@@ -278,7 +279,8 @@ public interface TaskShortcutFactory {
|
||||
}
|
||||
|
||||
private boolean isAvailable(BaseDraggingActivity activity, int displayId) {
|
||||
return ActivityManagerWrapper.getInstance().supportsFreeformMultiWindow(activity);
|
||||
return ActivityManagerWrapper.getInstance().supportsFreeformMultiWindow(activity)
|
||||
&& !SystemProperties.getBoolean("persist.wm.debug.desktop_mode", false);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user