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

Commit 86356ec7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Get the themes outside of the resource lock"

parents a85b43b8 35a9a386
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5114,6 +5114,8 @@ public final class ActivityThread extends ClientTransactionHandler {
        // as that method uses the same check on the activity config override as well.
        final boolean equivalent = config != null && mConfiguration != null
                && (0 == mConfiguration.diffPublicOnly(config));
        final Theme systemTheme = getSystemContext().getTheme();
        final Theme systemUiTheme = getSystemUiContext().getTheme();

        synchronized (mResourcesManager) {
            if (mPendingConfiguration != null) {
@@ -5146,12 +5148,10 @@ public final class ActivityThread extends ClientTransactionHandler {
            configDiff = mConfiguration.updateFrom(config);
            config = applyCompatConfiguration(mCurDefaultDisplayDpi);

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

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