Log reason for ACTION_CLOSE_SYSTEM_DIALOGS

Bug: 244639932
Test: N/A
Change-Id: Ic0206e0b08ec06961340cf7c866b3accfaad178f
This commit is contained in:
Ilya Matyukhin
2022-08-30 22:36:25 +00:00
parent 0162aec6c8
commit ff8025b4de
2 changed files with 9 additions and 3 deletions

View File

@@ -181,7 +181,10 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba
public void onReceive(Context context, Intent intent) {
if (mCurrentDialog != null
&& Intent.ACTION_CLOSE_SYSTEM_DIALOGS.equals(intent.getAction())) {
Log.w(TAG, "ACTION_CLOSE_SYSTEM_DIALOGS received");
String reason = intent.getStringExtra("reason");
reason = (reason != null) ? reason : "unknown";
Log.d(TAG, "ACTION_CLOSE_SYSTEM_DIALOGS received, reason: " + reason);
mCurrentDialog.dismissWithoutCallback(true /* animate */);
mCurrentDialog = null;
mOrientationListener.disable();

View File

@@ -348,8 +348,11 @@ public class UdfpsController implements DozeReceiver {
if (mOverlay != null
&& mOverlay.getRequestReason() != REASON_AUTH_KEYGUARD
&& Intent.ACTION_CLOSE_SYSTEM_DIALOGS.equals(intent.getAction())) {
Log.d(TAG, "ACTION_CLOSE_SYSTEM_DIALOGS received, mRequestReason: "
+ mOverlay.getRequestReason());
String reason = intent.getStringExtra("reason");
reason = (reason != null) ? reason : "unknown";
Log.d(TAG, "ACTION_CLOSE_SYSTEM_DIALOGS received, reason: " + reason
+ ", mRequestReason: " + mOverlay.getRequestReason());
mOverlay.cancel();
hideUdfpsOverlay();
}