This commit provides the implementation of functionality that blocks
sms/calls notifications on home screen when tethering is active.
Previously, the notifications could be visible if the notifications
were visible prior to tethering activation.
By the design, the functionality should not clear the notifications,
just temporary hide them. That is achieved by implementation ot the
functionality in NotificationModel which is an UI presenter.
This PR provides implementation of home screen notification for
`notSeen` messages received from a single number. The "single-number:
`notSeen` message notification distinct from "multiple-number"
notification with the following features:
- displaying formatted contact name
- `onActivated` it switches to respective thread window (instead of
all thread window) in `ApplicationMessages`
The PR also introduced some `ActiveNotificationsModel` code refactor
to align the implementation with `Single Responsibility Principle`
This PR adds proper notification on call notifications coming from
single number. To that end following changes have been introduced:
* extension of Notification DB record with contact_id filed
* use of `ContactRecordInterface` in `NotificationsRecordInterface`
* extension of `Increment` query to require `PhoneNumber::View`
* multiple minor changes on path from creating/handling
`NotificationsRecord` to displaying respective notification.
This PR adds home screen tethering notification. The notifications
allows user to disconnect tethering from desktop by focusing on
the notification and pressing `KEY_ENTER`
This PR adds also home screen notifications icons in `.png` format.
Icons shall be converted to `.vpi` and used in other tasks regarding
home screen notifications.
This PR provides following changes in notifications:
- notifications were extracted as widget for pop-up-based
locked-screen implementation
- notifications are ListView based implemented
- the most recent notification is displayed on the top of the list