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

Commit 1743988c authored by Alan Viverette's avatar Alan Viverette Committed by Android Git Automerger
Browse files

am 6c3a468c: am e720297f: am b4eb0640: Merge "Avoid use-after-free race...

am 6c3a468c: am e720297f: am b4eb0640: Merge "Avoid use-after-free race condition when rebasing theme" into mnc-dev

* commit '6c3a468c':
  Avoid use-after-free race condition when rebasing theme
parents 49ae8f2e 6c3a468c
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -4235,11 +4235,6 @@ public final class ActivityThread {

            configDiff = mConfiguration.updateFrom(config);
            config = applyCompatConfiguration(mCurDefaultDisplayDpi);

            final Theme systemTheme = getSystemContext().getTheme();
            if ((systemTheme.getChangingConfigurations() & configDiff) != 0) {
                systemTheme.rebase();
            }
        }

        ArrayList<ComponentCallbacks2> callbacks = collectComponentCallbacks(false, config);
+0 −6
Original line number Diff line number Diff line
@@ -1029,12 +1029,6 @@ public final class SystemServer {
        w.getDefaultDisplay().getMetrics(metrics);
        context.getResources().updateConfiguration(config, metrics);

        // The system context's theme may be configuration-dependent.
        final Theme systemTheme = context.getTheme();
        if (systemTheme.getChangingConfigurations() != 0) {
            systemTheme.rebase();
        }

        try {
            // TODO: use boot phase
            mPowerManagerService.systemReady(mActivityManagerService.getAppOpsService());