Skip to content
Commit 5dfa2dbc authored by Yuri Lin's avatar Yuri Lin
Browse files

Show "review notification permissions" notification

This notification is shown for users who have XML version <4 (newest for now), which includes both users newly upgrading from <T and anyone who has already upgraded to T but not yet seen the notification.

This state is tracked using a Settings int that allows for coordination between PreferencesHelper (which reads XML), NMS (shows notification), and the new ReviewNotificationPermissionsReceiver (receives intents from the notification and behaves accordingly).

Change also includes a new JobService in order to schedule the job to re-show the notification 7 days in the future if the user requests it.

Fixes: 225373531
Test: manual; NotificationManagerServiceTest; PreferencesHelperTest; ReviewNotificationPermissionsReceiverTest; ReviewNotificationPermissionsJobServiceTest

Change-Id: I4039728646f706bdc1c01f2c0165721a5b10c9f5
parent 8b7783d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment