diff options
| author | 2022-03-27 20:44:40 +0000 | |
|---|---|---|
| committer | 2022-03-27 20:44:40 +0000 | |
| commit | f2843d672a376e6b48eba0cf879cf672bb91feab (patch) | |
| tree | 31edafdd2e4bba08051bf03b41cf77f30e17de52 | |
| parent | 923eb82c53758c6634420e5cb813c3776c7e5bd3 (diff) | |
| parent | ec295771f7675e8a8163a162419f43f7b5830fc1 (diff) | |
Merge "Fix DeviceFoldStateProviderTest" into tm-dev
| -rw-r--r-- | packages/SystemUI/shared/src/com/android/systemui/unfold/updates/DeviceFoldStateProvider.kt | 7 |
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) { |