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

Commit 9e193f03 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Dismiss keyguard before displaying bugrepot details dialog."

parents 2c728430 17d9e9c3
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -92,6 +92,7 @@ import android.util.Log;
import android.util.Pair;
import android.util.Patterns;
import android.util.SparseArray;
import android.view.IWindowManager;
import android.view.View;
import android.view.WindowManager;
import android.view.View.OnFocusChangeListener;
@@ -579,6 +580,16 @@ public class BugreportProgressService extends Service {
        }

        collapseNotificationBar();

        // Dissmiss keyguard first.
        final IWindowManager wm = IWindowManager.Stub
                .asInterface(ServiceManager.getService(Context.WINDOW_SERVICE));
        try {
            wm.dismissKeyguard(null);
        } catch (Exception e) {
            // ignore it
        }

        mInfoDialog.initialize(mContext, info);
    }