diff --git a/GITHUB_CHANGELOG.md b/GITHUB_CHANGELOG.md index 62a9d467e6..719f752d27 100644 --- a/GITHUB_CHANGELOG.md +++ b/GITHUB_CHANGELOG.md @@ -24,6 +24,7 @@ Compatibility list: * [Launcher] Limited Android 11 support * [Launcher] Limited Android 10 support * [Launcher] Icon pack support (by SuperDragonXD @ https://github.com/LawnchairLauncher/lawnchair/pull/6066) +* [Launcher] Crash when trying to grab display context from public reference in Android 12.0 and above ### 🥞 Development 4 Release 1 (Snapshot 10) diff --git a/quickstep/src/com/android/launcher3/statehandlers/DesktopVisibilityController.kt b/quickstep/src/com/android/launcher3/statehandlers/DesktopVisibilityController.kt index cf935fc587..748238f18a 100644 --- a/quickstep/src/com/android/launcher3/statehandlers/DesktopVisibilityController.kt +++ b/quickstep/src/com/android/launcher3/statehandlers/DesktopVisibilityController.kt @@ -672,7 +672,7 @@ constructor( private val controller = WeakReference(controller) private val displayManager: DisplayManager = context.getSystemService(DisplayManager::class.java) private val displayId = if (Utilities.ATLEAST_R) { - context.display.displayId + context.displayId } else { displayManager.displays[DEFAULT_DISPLAY].displayId }