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

Commit 39ada78b authored by Varun Shah's avatar Varun Shah
Browse files

Remove flag for caching getCurrentUserId.

The flag has now been rolled out in the release.

Fixes: 409610721
Test: n/a
Flag: EXEMPT removing android.app.cache_get_current_user_id
Change-Id: Id1e1f5487b3ed04ff8b270d69c79ad5cd045b7d6
parent 83674a10
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -257,7 +257,7 @@ public class ActivityManager {

    /**
     * Query handler for mGetCurrentUserIdCache - returns a cached value of the current foreground
     * user id if the backstage_power/android.app.cache_get_current_user_id flag is enabled.
     * user id.
     */
    private static final IpcDataCache.QueryHandler<Void, Integer> mGetCurrentUserIdQuery =
            new IpcDataCache.QueryHandler<>() {
@@ -269,12 +269,6 @@ public class ActivityManager {
                        throw e.rethrowFromSystemServer();
                    }
                }

                @Override
                public boolean shouldBypassCache(Void query) {
                    // If the flag to enable the new caching behavior is off, bypass the cache.
                    return !Flags.cacheGetCurrentUserId();
                }
            };

    /** A cache which maintains the current foreground user id. */
+0 −11
Original line number Diff line number Diff line
@@ -105,17 +105,6 @@ flag {
     }
}

flag {
     namespace: "backstage_power"
     name: "cache_get_current_user_id"
     description: "Add caching for getCurrentUserId"
     is_fixed_read_only: true
     bug: "361853873"
     metadata {
         purpose: PURPOSE_BUGFIX
     }
}

flag {
     namespace: "backstage_power"
     name: "use_sticky_bcast_cache"