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

Commit 978c718e authored by Gaurav Bhola's avatar Gaurav Bhola Committed by Automerger Merge Worker
Browse files

Merge "Ensure that DebuggerWindow is shown on headless systems." into...

Merge "Ensure that DebuggerWindow is shown on headless systems." into udc-qpr-dev am: 30b0ca31 am: b3cd9f89

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



Change-Id: Ifd57a69cf2945a78b642a56104a126c97aa831c6
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 58c1d0fc b3cd9f89
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.server.am;

import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_SHOW_FOR_ALL_USERS;

import android.content.Context;
import android.content.DialogInterface;
import android.os.Handler;
@@ -54,6 +56,7 @@ final class AppWaitingForDebuggerDialog extends BaseErrorDialog {
        setButton(DialogInterface.BUTTON_POSITIVE, "Force Close", mHandler.obtainMessage(1, app));
        setTitle("Waiting For Debugger");
        WindowManager.LayoutParams attrs = getWindow().getAttributes();
        attrs.privateFlags |= SYSTEM_FLAG_SHOW_FOR_ALL_USERS;
        attrs.setTitle("Waiting For Debugger: " + app.info.processName);
        getWindow().setAttributes(attrs);
    }