Implement UI for pairing mailbox with Briar
Implement design done in #31 (closed).
Depends on #31 (closed), #48 (closed), #49 (closed).
Subtasks:
-
Implement four screens below with raw non-polished design, just minimum info and widgets to implement flow based on backend events including handover to current placeholder status screen -
Test flow with briar app -
Implement setup progress screen (#98 (closed)) -
Add and implement error screen for when device is offline (#95 (closed)) -
Implement QR-display screen -
Implement Successful linking screen (#99 (closed))
Testing instructions:
In order to test repeatedly with the do-not-kill-me-fragment, it is required to enable battery optimizations for the mailbox app. The do-not-kill-fragment will disable the optimizations for us, and then to re-test the flow, it needs to be enabled again. This can be done by navigating to "System settings" → "Apps & Notifications" → "Advanced" → "Special app access" → "Battery optimization" → Wait for list of apps to load for ~5 seconds → Select Mailbox app → "Optimize".
That takes way too long to make it frequently, so here's an adb
shortcut:
adb shell dumpsys deviceidle whitelist -org.briarproject.mailbox