Merge "Fix DeviceFoldStateProviderTest" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f2843d672a
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user