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

Commit 21761bc5 authored by Pirama Arumuga Nainar's avatar Pirama Arumuga Nainar Committed by Android Git Automerger
Browse files

am 0cc09449: Merge "Store compiled code in Context.getCodeCacheDir()"...

am 0cc09449: Merge "Store compiled code in Context.getCodeCacheDir()" automerge: 3fbbe396 automerge: 1641e192

* commit '0cc09449':
  Store compiled code in Context.getCodeCacheDir()
parents 5cfd3d8b 0cc09449
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -4432,10 +4432,16 @@ public final class ActivityThread {
            if (cacheDir != null) {
                // Provide a usable directory for temporary files
                System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath());
            } else {
                Log.v(TAG, "Unable to initialize \"java.io.tmpdir\" property due to missing cache directory");
            }

                setupGraphicsSupport(data.info, cacheDir);
            // Use codeCacheDir to store generated/compiled graphics code
            final File codeCacheDir = appContext.getCodeCacheDir();
            if (codeCacheDir != null) {
                setupGraphicsSupport(data.info, codeCacheDir);
            } else {
                Log.e(TAG, "Unable to setupGraphicsSupport due to missing cache directory");
                Log.e(TAG, "Unable to setupGraphicsSupport due to missing code-cache directory");
            }
        }