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

Commit 6039f280 authored by Wale Ogunwale's avatar Wale Ogunwale Committed by android-build-merger
Browse files

Merge "Always send configuration changes to activity." into nyc-dev am: 988a20a9 am: c6ea9f77

am: c3336cae

* commit 'c3336cae':
  Always send configuration changes to activity.

Change-Id: I5523de0f83b085333156954d355b761df46fb655
parents 7d53e0b5 c3336cae
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -4362,12 +4362,12 @@ final class ActivityStack {
        if (DEBUG_SWITCH || DEBUG_CONFIGURATION) Slog.v(TAG_CONFIGURATION,
                "Ensuring correct configuration: " + r);

        // Short circuit: if the two configurations are the exact same
        // object (the common case), then there is nothing to do.
        // Short circuit: if the two configurations are equal (the common case), then there is
        // nothing to do.
        final Configuration newConfig = mService.mConfiguration;
        final Configuration taskConfig = r.task.mOverrideConfig;
        if (r.configuration == newConfig
                && r.taskConfigOverride == taskConfig
        if (r.configuration.equals(newConfig)
                && r.taskConfigOverride.equals(taskConfig)
                && !r.forceNewConfig) {
            if (DEBUG_SWITCH || DEBUG_CONFIGURATION) Slog.v(TAG_CONFIGURATION,
                    "Configuration unchanged in " + r);
@@ -4396,7 +4396,7 @@ final class ActivityStack {
                    "Configuration no differences in " + r);
            // There are no significant differences, so we won't relaunch but should still deliver
            // the new configuration to the client process.
            r.scheduleConfigurationChanged(taskConfig, false);
            r.scheduleConfigurationChanged(taskConfig, true);
            return true;
        }