Skip to content

Commit

Permalink
Disable one more instance of invisible activity hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
farmerbb committed Sep 12, 2024
1 parent f3912dd commit d7e12c2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,9 @@ private void showStartMenu() {
boolean onHomeScreen = LauncherHelper.getInstance().isOnHomeScreen(context);
boolean inFreeformMode = FreeformHackHelper.getInstance().isInFreeformWorkspace();

if(!U.isChromeOs(context) && (!onHomeScreen || inFreeformMode)) {
if(!U.isChromeOs(context)
&& U.needsInvisibleActivityHacks()
&& (!onHomeScreen || inFreeformMode)) {
Class<?> clazz = inFreeformMode && !U.hasBrokenSetLaunchBoundsApi()
? InvisibleActivityAlt.class
: InvisibleActivity.class;
Expand Down

0 comments on commit d7e12c2

Please sign in to comment.