Loading packages/SystemUI/multivalentTests/src/com/android/systemui/unfold/updates/DeviceFoldStateProviderTest.kt +1 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,7 @@ class DeviceFoldStateProviderTest : SysuiTestCase() { whenever(mainLooper.isCurrentThread).thenReturn(true) whenever(mainLooper.thread).thenReturn(thread) whenever(thread.name).thenReturn("backgroundThread") whenever(context.applicationContext).thenReturn(context) whenever(context.resources).thenReturn(resources) whenever(context.mainExecutor).thenReturn(mContext.mainExecutor) Loading packages/SystemUI/unfold/src/com/android/systemui/unfold/updates/DeviceFoldStateProvider.kt +1 −1 Original line number Diff line number Diff line Loading @@ -306,7 +306,7 @@ constructor( } private fun isOnLargeScreen(): Boolean { return context.resources.configuration.smallestScreenWidthDp > return context.applicationContext.resources.configuration.smallestScreenWidthDp > INNER_SCREEN_SMALLEST_SCREEN_WIDTH_THRESHOLD_DP } Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/unfold/updates/DeviceFoldStateProviderTest.kt +1 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,7 @@ class DeviceFoldStateProviderTest : SysuiTestCase() { whenever(mainLooper.isCurrentThread).thenReturn(true) whenever(mainLooper.thread).thenReturn(thread) whenever(thread.name).thenReturn("backgroundThread") whenever(context.applicationContext).thenReturn(context) whenever(context.resources).thenReturn(resources) whenever(context.mainExecutor).thenReturn(mContext.mainExecutor) Loading
packages/SystemUI/unfold/src/com/android/systemui/unfold/updates/DeviceFoldStateProvider.kt +1 −1 Original line number Diff line number Diff line Loading @@ -306,7 +306,7 @@ constructor( } private fun isOnLargeScreen(): Boolean { return context.resources.configuration.smallestScreenWidthDp > return context.applicationContext.resources.configuration.smallestScreenWidthDp > INNER_SCREEN_SMALLEST_SCREEN_WIDTH_THRESHOLD_DP } Loading