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

Commit 3557bf4c authored by Charles Chen's avatar Charles Chen Committed by Android (Google) Code Review
Browse files

Merge "Update display before dispatching config change" into main

parents 180036ed e5d91778
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -167,6 +167,11 @@ public class WindowTokenClient extends Binder {
                    + ", reported config=" + currentConfig
                    + ", updated config=" + newConfig);
        }
        // Update display first. In case callers want to obtain display information(
        // ex: DisplayMetrics) in #onConfigurationChanged callback.
        if (displayChanged) {
            context.updateDisplay(newDisplayId);
        }
        if (shouldUpdateResources) {
            // TODO(ag/9789103): update resource manager logic to track non-activity tokens
            mResourcesManager.updateResourcesForActivity(this, newConfig, newDisplayId);
@@ -195,9 +200,6 @@ public class WindowTokenClient extends Binder {
                }
            }
        }
        if (displayChanged) {
            context.updateDisplay(newDisplayId);
        }
    }

    /**