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

am: f3edaf6

* commit 'f3edaf6a4397859d3558a2df07e4bd5011ebddd3':
  Enable shader cache for applications that shared UID with multiple packages too
This commit is contained in:
Shuo Gao
2016-03-22 14:31:25 +00:00
committed by android-build-merger

View File

@@ -4390,9 +4390,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) {
HardwareRenderer.setupDiskCache(cacheDir);
RenderScriptCacheDir.setupDiskCache(cacheDir);
}