[Lock Screen] Show Previous/Next buttons only if supported
ClosedPublic

Authored by broulik on Apr 25 2017, 3:49 PM.

Details

Summary

If the user can neither go back nor forward, hide those controls for a cleaner look.

Test Plan

If one action (e.g. only "Next" is supported), both buttons are shown with the Back button grayed out. But for the case of a simple stream or so where really only play/pause is supported, it makes it much cleaner:

(I initially did this for Task manager but here I found it looked odd with the tiny lost play icon

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Apr 25 2017, 3:49 PM
Restricted Application added a project: Plasma. · View Herald TranscriptApr 25 2017, 3:49 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
graesslin accepted this revision.Apr 25 2017, 5:14 PM
This revision is now accepted and ready to land.Apr 25 2017, 5:14 PM
This revision was automatically updated to reflect the committed changes.