AlexChumakou / dashclock

Automatically exported from code.google.com/p/dashclock
0 stars 0 forks source link

Use WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED #676

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,
Right now, as I understand, DashClock unlocks the device and then calls 
startActivity() for the given extension. It would be great if the extension can 
tell the host to skip the unlock procedure and just start the activity. 

This way the activity can set WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED. 
The user experience will get better, because there will not be any flickering 
of the screen when starting the extension activity.

Also, it will be possible to workaround issue #52 with a transparent activity, 
which calls finish() in its onResume() method.

Original issue reported on code.google.com by supp...@tinyflashlight.com on 29 Dec 2013 at 8:45

GoogleCodeExporter commented 8 years ago
Basically, add an option to skip WidgetClickProxyActivity and directly launch 
the extension activity.

Original comment by supp...@tinyflashlight.com on 29 Dec 2013 at 9:52

GoogleCodeExporter commented 8 years ago
... or just don't add Intent.FLAG_ACTIVITY_TASK_ON_HOME in 
WidgetClickProxyActivity

Original comment by supp...@tinyflashlight.com on 29 Dec 2013 at 10:11