Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3426f8b9 authored by Nick Chameyev's avatar Nick Chameyev Committed by Android (Google) Code Review
Browse files

Merge "Use application context in DeviceFoldStateProvider" into main

parents 95f5091d 5c6b6ce4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)

+1 −1
Original line number Diff line number Diff line
@@ -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
    }