Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c714a66 authored by Ale Nijamkin's avatar Ale Nijamkin
Browse files

[flexiglass] Dual shade education tooltips.

Full stack (data, domain, and UI layers) implementation of dual shade
educational tooltips as per the latest spec.

When the user expands one of the two dual shade overlays, 5 seconds
after doing so, a tooltip will be shown to promote the existence of the
other shade.

Once a tooltip its overlay is shown for the first time for the user,
that tooltip will never be shown again.

The implementation also minimizes the number of running coroutines such
that once education is no longer needed (because an impression already
happened or because the user is not in dual shade mode), only one coroutine will remain running (namely, the one that monitors those conditions).

To turn on debug logging:
$ adb shell setprop log.tag.DualShadeEducation VERBOSE

To reset the state so the tooltips trigger again:
$ adb shell pm clear com.android.systemui

Bug: 406213664
Test: view-model level integration tests added
Test: manually verified that the correct tooltip appears on the correct
side when I expand one of the two overlays and never shown again
Flag: com.android.systemui.scene_container

Change-Id: I38e9114e4382fd04fb4d0beede4bc63a82fad244
parent d443cbd9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment