Loading packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotProxyService.kt +9 −2 Original line number Diff line number Diff line Loading @@ -17,15 +17,16 @@ package com.android.systemui.screenshot import android.content.Intent import android.os.IBinder import android.os.RemoteException import android.util.Log import androidx.lifecycle.LifecycleService import androidx.lifecycle.lifecycleScope import com.android.app.tracing.coroutines.launch import com.android.systemui.dagger.qualifiers.Main import com.android.systemui.plugins.ActivityStarter import com.android.systemui.shade.ShadeExpansionStateManager import javax.inject.Inject import kotlinx.coroutines.CoroutineDispatcher import com.android.app.tracing.coroutines.launch import kotlinx.coroutines.withContext /** Provides state from the main SystemUI process on behalf of the Screenshot process. */ Loading Loading @@ -56,7 +57,13 @@ constructor( private suspend fun executeAfterDismissing(callback: IOnDoneCallback) = withContext(mMainDispatcher) { activityStarter.executeRunnableDismissingKeyguard( Runnable { callback.onDone(true) }, { try { callback.onDone(true) } catch (e: RemoteException) { Log.w(TAG, "Failed to complete callback transaction", e) } }, null, true /* dismissShade */, true /* afterKeyguardGone */, Loading Loading
packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotProxyService.kt +9 −2 Original line number Diff line number Diff line Loading @@ -17,15 +17,16 @@ package com.android.systemui.screenshot import android.content.Intent import android.os.IBinder import android.os.RemoteException import android.util.Log import androidx.lifecycle.LifecycleService import androidx.lifecycle.lifecycleScope import com.android.app.tracing.coroutines.launch import com.android.systemui.dagger.qualifiers.Main import com.android.systemui.plugins.ActivityStarter import com.android.systemui.shade.ShadeExpansionStateManager import javax.inject.Inject import kotlinx.coroutines.CoroutineDispatcher import com.android.app.tracing.coroutines.launch import kotlinx.coroutines.withContext /** Provides state from the main SystemUI process on behalf of the Screenshot process. */ Loading Loading @@ -56,7 +57,13 @@ constructor( private suspend fun executeAfterDismissing(callback: IOnDoneCallback) = withContext(mMainDispatcher) { activityStarter.executeRunnableDismissingKeyguard( Runnable { callback.onDone(true) }, { try { callback.onDone(true) } catch (e: RemoteException) { Log.w(TAG, "Failed to complete callback transaction", e) } }, null, true /* dismissShade */, true /* afterKeyguardGone */, Loading