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

Commit 54423e29 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

Merge "Remove optimization to report config change" into nyc-dev am: df551dda

am: 1ef93596

* commit '1ef93596':
  Remove optimization to report config change

Change-Id: Ib93421e54143e00d6e6481fba0f59067d7c8cdc9
parents 0f851aee 1ef93596
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -4617,18 +4617,9 @@ public final class ActivityThread {
            // onConfigurationChanged
            int diff = activity.mCurrentConfig.diff(newConfig);
            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.
                // 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;
            }
        }
        }

        if (DEBUG_CONFIGURATION) {
            Slog.v(TAG, "Config callback " + cb + ": shouldChangeConfig=" + shouldChangeConfig);