Loading core/java/android/app/ActivityThread.java +9 −3 Original line number Original line Diff line number Diff line Loading @@ -4396,10 +4396,16 @@ public final class ActivityThread { if (cacheDir != null) { if (cacheDir != null) { // Provide a usable directory for temporary files // Provide a usable directory for temporary files System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath()); 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 { } else { Log.e(TAG, "Unable to setupGraphicsSupport due to missing cache directory"); Log.e(TAG, "Unable to setupGraphicsSupport due to missing code-cache directory"); } } } } Loading Loading
core/java/android/app/ActivityThread.java +9 −3 Original line number Original line Diff line number Diff line Loading @@ -4396,10 +4396,16 @@ public final class ActivityThread { if (cacheDir != null) { if (cacheDir != null) { // Provide a usable directory for temporary files // Provide a usable directory for temporary files System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath()); 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 { } else { Log.e(TAG, "Unable to setupGraphicsSupport due to missing cache directory"); Log.e(TAG, "Unable to setupGraphicsSupport due to missing code-cache directory"); } } } } Loading