Merge "Fix DeviceFoldStateProviderTest" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-03-27 20:44:40 +00:00
committed by Android (Google) Code Review

View File

@@ -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) {