Controls UI - Blank activity when launched on lock screen

When the user only has swipe security or no security setup, long
pressing on activity would show a blank dialog. Need to dismiss the
keyguard first before taking action. Also make sure controls show
correctly on the lock screen when the device is unlocked.

Fixes: 159895513
Test: manual, PIN lock, swipe lock, no lock, face auth

Change-Id: Iae24e4bd8bb36b0a48fb8a8125c5182fe1f7b4d6
2 files changed