Dynamic shortcuts are created for all recent patients (up to device shortcut limit). The shortcut opens the patient detail page for the corresponding patient.
The first 2 are static shortcuts. They take the user to the new healings/payments flow.
All shortcuts have added capabilities for Google Assistant integration (See addCapabilityBinding.
All patients added as dynamic shortcuts have an icon (First letter of name with a random background color - The random functionality uses the hash code of the name as a seed so the same name will always produce the same color). Refer to PatientProfileDrawable
Further, all navigations to patient pages, creation of new healings/payments are reported to Android as a usage of the relevant shortcut. See reportShortcutUsed
Closes #65
This PR adds the following shortcuts:-
Dynamic shortcuts are created for all recent patients (up to device shortcut limit). The shortcut opens the patient detail page for the corresponding patient.
The first 2 are static shortcuts. They take the user to the new healings/payments flow.
All shortcuts have added capabilities for Google Assistant integration (See
addCapabilityBinding
.All patients added as dynamic shortcuts have an icon (First letter of name with a random background color - The random functionality uses the hash code of the name as a seed so the same name will always produce the same color). Refer to
PatientProfileDrawable
Further, all navigations to patient pages, creation of new healings/payments are reported to Android as a usage of the relevant shortcut. See
reportShortcutUsed