Merge "Fix DeviceFoldStateProviderTest" into tm-dev am: f2843d672a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17408865 Change-Id: I53fc8f9eeee2d9553306eaa13d9fc5cb7d489749 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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