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

Commit adefee82 authored by Piyush Singhania's avatar Piyush Singhania
Browse files

Cleanup the flag android.app.Flags.optimize_get_apps_and_shortcuts

Flag: EXEMPT removing flag android.app.Flags.optimize_get_apps_and_shortcuts
Bug: 434328730
Test: atest LauncherAppsTest
Change-Id: Ie665adeb24be44dc1f10020dfb7dd515421a93fa
parent c5f93c94
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -141,17 +141,6 @@ flag {
     is_fixed_read_only: true
}

flag {
     namespace: "backstage_power"
     name: "optimize_get_apps_and_shortcuts"
     description: "Get Available Apps and Shortcuts"
     is_fixed_read_only: true
     bug: "364133831"
     metadata {
         purpose: PURPOSE_BUGFIX
     }
}

flag {
     namespace: "system_performance"
     name: "early_render_thread_priority_boost"
+0 −6
Original line number Diff line number Diff line
@@ -1897,9 +1897,6 @@ public class LauncherAppsService extends SystemService {
        @Override
        public ParceledListSlice<AppLaunchInfo> getActivityLaunchIntentForAllApps(
                String callingPackage, UserHandle user) {
            if (!android.app.Flags.optimizeGetAppsAndShortcuts()) {
                return new ParceledListSlice<>(new ArrayList<>());
            }
            List<AppLaunchInfo> availableApps = new ArrayList<>();
            final int userId = user.getIdentifier();

@@ -1949,9 +1946,6 @@ public class LauncherAppsService extends SystemService {
        public ParceledListSlice<ShortcutInfo> getAvailableShortcuts(String callingPackage,
                UserHandle user) {
            List<ShortcutInfo> availableShortcuts = new ArrayList<>();
            if (!android.app.Flags.optimizeGetAppsAndShortcuts()) {
                return new ParceledListSlice<>(availableShortcuts);
            }
            int userId = user.getIdentifier();

            if (!mUserManagerInternal.isUserUnlocked(userId)) {