mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Merge "Listen to DisplayController for ignoreAutoRotateSettings" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f49287d627
@@ -278,11 +278,11 @@ public class DisplayController implements ComponentCallbacks, SafeCloseable {
|
||||
public final float fontScale;
|
||||
private final int densityDpi;
|
||||
public final NavigationMode navigationMode;
|
||||
|
||||
private final PortraitSize mScreenSizeDp;
|
||||
|
||||
// WindowBounds
|
||||
public final WindowBounds realBounds;
|
||||
public final Set<WindowBounds> supportedBounds = new ArraySet<>();
|
||||
|
||||
private final ArrayMap<CachedDisplayInfo, WindowBounds[]> mPerDisplayBounds =
|
||||
new ArrayMap<>();
|
||||
|
||||
@@ -310,7 +310,7 @@ public class DisplayController implements ComponentCallbacks, SafeCloseable {
|
||||
mPerDisplayBounds.putAll(perDisplayBoundsCache);
|
||||
WindowBounds[] cachedValue = mPerDisplayBounds.get(normalizedDisplayInfo);
|
||||
|
||||
WindowBounds realBounds = wmProxy.getRealBounds(displayInfoContext, displayInfo);
|
||||
realBounds = wmProxy.getRealBounds(displayInfoContext, displayInfo);
|
||||
if (cachedValue == null) {
|
||||
// Unexpected normalizedDisplayInfo is found, recreate the cache
|
||||
Log.e(TAG, "Unexpected normalizedDisplayInfo found, invalidating cache");
|
||||
|
||||
Reference in New Issue
Block a user