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

Commit da23e9f9 authored by Anna Zhuravleva's avatar Anna Zhuravleva
Browse files

Update plus button market intent

If the market app is already launched,
replace existing task with the new one.

Bug:322944245
Test: openned market app, then click on plus button
Flag: ACONFIG com.android.launcher3.Flags.enable_private_space_install_shortcut
DEVELOPMENT

Change-Id: I7747e992ccc04ec9f1d469da21291f0e5bdb2623
parent 2cf6a8eb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1669,6 +1669,8 @@ public class LauncherAppsService extends SystemService {
        private IntentSender buildAppMarketIntentSenderForUser(@NonNull UserHandle user) {
            Intent appMarketIntent = new Intent(Intent.ACTION_MAIN);
            appMarketIntent.addCategory(Intent.CATEGORY_APP_MARKET);
            appMarketIntent.setFlags(
                    Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
            return buildIntentSenderForUser(appMarketIntent, user);
        }