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

Commit 2102c7fe authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Controls UI - Close power menu on app open" into rvc-dev am: a621dad0...

Merge "Controls UI - Close power menu on app open" into rvc-dev am: a621dad0 am: cad7cff4 am: 16eeb334

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11792010

Change-Id: I809c41b58042fc4b67bfb82283e5575a01d0dced
parents 7e7229b5 16eeb334
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.systemui.controls.ui
import android.app.AlertDialog
import android.app.PendingIntent
import android.content.DialogInterface
import android.content.Intent
import android.content.pm.PackageManager
import android.service.controls.Control
import android.view.View
@@ -74,6 +75,7 @@ class StatusBehavior : Behavior {
                DialogInterface.OnClickListener { dialog, _ ->
                    try {
                        cws.control?.getAppIntent()?.send()
                        context.sendBroadcast(Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS))
                    } catch (e: PendingIntent.CanceledException) {
                        cvh.setTransientStatus(
                            cvh.context.resources.getString(R.string.controls_error_failed))