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? {
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user