summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2022-03-27 20:44:40 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-03-27 20:44:40 +0000
commitf2843d672a376e6b48eba0cf879cf672bb91feab (patch)
tree31edafdd2e4bba08051bf03b41cf77f30e17de52
parent923eb82c53758c6634420e5cb813c3776c7e5bd3 (diff)
parentec295771f7675e8a8163a162419f43f7b5830fc1 (diff)
Merge "Fix DeviceFoldStateProviderTest" into tm-dev
-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) {