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

Commit a21a3acb authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 9769041 from 56858c62 to udc-release

Change-Id: I1349132a0e1cccaad03c4d9f25c219be20c8d7fe
parents 5e855d3a 56858c62
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -68,8 +68,9 @@ internal constructor(private val context: Context, choreographer: Choreographer,
        @JvmStatic
        fun getInstance(context: Context): ViewCapture = when {
            INSTANCE != null -> INSTANCE!!
            Looper.myLooper() == Looper.getMainLooper() -> SettingsAwareViewCapture(context,
                    Choreographer.getInstance(), createAndStartNewLooperExecutor("SAViewCapture",
            Looper.myLooper() == Looper.getMainLooper() -> SettingsAwareViewCapture(
                    context.applicationContext, Choreographer.getInstance(),
                    createAndStartNewLooperExecutor("SAViewCapture",
                    Process.THREAD_PRIORITY_FOREGROUND)).also { INSTANCE = it }
            else -> try {
                MAIN_EXECUTOR.submit { getInstance(context) }.get()