Control stylus related lock screen note state from ash
Move logic to * launch lock screen note when stylus is removed * close lock screen note when screen is forced off (e.g. due to power button press) from lock_screen_apps/state_controller to ash, into a newly added LockScreenNoteDisplayHandler. The main goal of this is to better handle lock screen app launch when stylus is ejected with display forced off. This action should perform two actions: 1. turn the display on 2. launch the lock screen note (if lock screen note action is enabled) Doing this at the same time can cause a flash of lock screen UI before the lock screen note app window is shown. With logic for launching the note moved to ash, it's possible to delay changing display state until the lock screen app window becomes visible, which should be long enough to prevent lock screen UI flash. BUG=767711 Change-Id: I7754050cb1275a6526a66843435b9f2d5837371f Reviewed-on: https://chromium-review.googlesource.com/807671 Commit-Queue: Toni Barzic <tbarzic@chromium.org> Reviewed-by:Dan Erat <derat@chromium.org> Reviewed-by:
Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#522354}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment