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

Commit 5144d154 authored by Wale Ogunwale's avatar Wale Ogunwale Committed by Android (Google) Code Review
Browse files

Merge "Still save config on client side when not reporting to activity."

parents 3cac67c0 14e811f5
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -4399,10 +4399,14 @@ public final class ActivityThread {
            // onConfigurationChanged
            int diff = activity.mCurrentConfig.diff(config);
            if (diff != 0) {
                // If this activity doesn't handle any of the config changes
                // then don't bother calling onConfigurationChanged as we're
                // going to destroy it.
                if ((~activity.mActivityInfo.getRealConfigChanged() & diff) == 0) {
                // If this activity doesn't handle any of the config changes then don't bother
                // calling onConfigurationChanged as we're going to destroy it.
                // Except in the case where the configuration changed on the activity manager side,
                // but wasn't big enough to cause a resource change so the activity wasn't destroyed.
                // In this case we still want to change the configuration of the activity but not
                // report it to the app.
                if ((~activity.mActivityInfo.getRealConfigChanged() & diff) == 0
                        || !reportToActivity) {
                    shouldChangeConfig = true;
                }
            }