Skip to content
Commit d890119a authored by Toni Barzic's avatar Toni Barzic Committed by Chromium LUCI CQ
Browse files

Improvements for camera privacy switch UI

When the camera privacy switch state changes, and a toast describing the
new state is shown, cancel the toast for the previous state so it gets
hidden immediately (the new toast is enqueued, so it won't hide the old
one).

Also, do not show toast when the privacy switch state changes from
unknown to off state, so "Camera is on" toast is not shown for the
default initial state.

BUG=1165937

Change-Id: Ief3be58a89b52e17a597475baa1230dc3f2fbd4c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2626187


Commit-Queue: Toni Baržić <tbarzic@chromium.org>
Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842769}
parent 863abd84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment