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? { private fun getClosingThreshold(): Int? {
val activityType = val activityType =
activityManager activityManager.getRunningTasks(/* maxNum= */ 1)?.getOrNull(0)?.topActivityType
.getRunningTasks(/* maxNum= */ 1)
?.getOrNull(0)
?.configuration
?.windowConfiguration
?.activityType
?: return null ?: return null
if (DEBUG) { if (DEBUG) {