zacharee / LockscreenWidgets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Per-widget logic to hide/unhide

e-t-l opened this issue · comments

The widget frame can be hidden based on the present IDs or apps. This is a brilliant feature! I request that it be enhanced by adding options to show or hide individual widgets, both in the frame and in the drawer.

The logic for this newbfeature COULD be the same as the same as what's currently implemented for the frame.

Or if it's easier, maybe just add basic programmatic commands to hide/unhide widgets based off some identifier (e.g. package name) and then set up a broadcast receiver to allow other apps to trigger the hiding or in hiding via intents. The actual logic dictating whether a widget is shown or hidden can be handled by a 3rd party app like Tasker.

Example use case: The user has the official Spotify app's widget in the drawer. When the Spotify media player is present in the notification shade, the widget is hidden from the drawer. Any other widgets in the drawer remain visible, and shift their location upwards appropriately.