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

Commit d0432402 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "am: Don't crash if cacheDir can't be created" into jellybean

parents c0eec7d5 1ed9f204
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -4158,10 +4158,12 @@ public final class ActivityThread {
        appContext.init(data.info, null, this);
        final File cacheDir = appContext.getCacheDir();

        if (cacheDir != null) {
            // Provide a usable directory for temporary files
            System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath());

            setupGraphicsSupport(data.info, cacheDir);
        }

        /**
         * For system applications on userdebug/eng builds, log stack