Enable shader cache for applications that shared UID with multiple packages too

am: 1e6d77e836

Change-Id: I1d90470f85a632417845e961ef75b8c5a2703b50
This commit is contained in:
Shuo Gao
2016-09-23 17:36:09 +00:00
committed by android-build-merger

View File

@@ -5010,9 +5010,7 @@ public final class ActivityThread {
int uid = Process.myUid();
String[] packages = getPackageManager().getPackagesForUid(uid);
// If there are several packages in this application we won't
// initialize the graphics disk caches
if (packages != null && packages.length == 1) {
if (packages != null) {
ThreadedRenderer.setupDiskCache(cacheDir);
RenderScriptCacheDir.setupDiskCache(cacheDir);
}