summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/SystemUI/shared/src/com/android/systemui/unfold/updates/DeviceFoldStateProvider.kt7
1 files changed, 1 insertions, 6 deletions
diff --git a/packages/SystemUI/shared/src/com/android/systemui/unfold/updates/DeviceFoldStateProvider.kt b/packages/SystemUI/shared/src/com/android/systemui/unfold/updates/DeviceFoldStateProvider.kt
index eb1181d98bec..ed973d6a6854 100644
--- a/packages/SystemUI/shared/src/com/android/systemui/unfold/updates/DeviceFoldStateProvider.kt
+++ b/packages/SystemUI/shared/src/com/android/systemui/unfold/updates/DeviceFoldStateProvider.kt
@@ -126,12 +126,7 @@ constructor(
*/
private fun getClosingThreshold(): Int? {
val activityType =
- activityManager
- .getRunningTasks(/* maxNum= */ 1)
- ?.getOrNull(0)
- ?.configuration
- ?.windowConfiguration
- ?.activityType
+ activityManager.getRunningTasks(/* maxNum= */ 1)?.getOrNull(0)?.topActivityType
?: return null
if (DEBUG) {