Merge "Enable shader cache for applications that shared UID with multiple packages too"
This commit is contained in:
@@ -4390,9 +4390,7 @@ public final class ActivityThread {
|
|||||||
int uid = Process.myUid();
|
int uid = Process.myUid();
|
||||||
String[] packages = getPackageManager().getPackagesForUid(uid);
|
String[] packages = getPackageManager().getPackagesForUid(uid);
|
||||||
|
|
||||||
// If there are several packages in this application we won't
|
if (packages != null) {
|
||||||
// initialize the graphics disk caches
|
|
||||||
if (packages != null && packages.length == 1) {
|
|
||||||
HardwareRenderer.setupDiskCache(cacheDir);
|
HardwareRenderer.setupDiskCache(cacheDir);
|
||||||
RenderScriptCacheDir.setupDiskCache(cacheDir);
|
RenderScriptCacheDir.setupDiskCache(cacheDir);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user