History log of /packages/apps/DeskClock/src/com/android/deskclock/ringtone/RingtonePickerActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
95eed3212011413e1cb717c281e2157859a5adf4 07-Jan-2017 Sean Stout <sstout@google.com> User is now informed when a custom ringtone in unplayable.

Bug: 34132184

When a user moves, renames, or deletes a file which was previously
selected as a custom ringtone, the clock is unable to play it back.
This is now conveyed to the user as a warning badge on the ringtone
selection screen. The user will now be prompted to remove the
ringtone if they tap on the badged ringtone.

Change-Id: I913b0c194dc463ff51b59b7c8e600ab18507b82d
(cherry picked from commit 84994eb7985da1cdfa379b73bdee31ab548c102d)
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/RingtonePickerActivity.java
f223d86acfc4d2f37727ebe5b62a28b621a7cd65 13-Dec-2016 James Lemieux <jplemieux@google.com> Handle SecurityExceptions while releasing file permissions

Bug: 33461345
Test: Manual test of RingtonePickerActivity

When custom ringtones are created, a persistable file permission to
read (play) the ringtone is taken. When the ringtone is deleted, the
permission is released. If the file was removed from the file system
prior to releasing the permission, a SecurityException occurs because
the permission in question is no longer held by the application. This
SecurityException is now handled gracefully.

Change-Id: Ia6fe9dbe2d1129bd6c081ae081da52fb7e61e334
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/RingtonePickerActivity.java
78083dc9f8ca8170a6f312f62d26c49d69b9f0e4 09-Dec-2016 Justin Klaassen <justinklaassen@google.com> Dismiss context menu on scroll

Bug: 33416960
Test: manually verified context menu is dismissed on scroll
Change-Id: I3cf2afcb3f1ef0fee77543f8189b26b4bd4bd9ca
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/RingtonePickerActivity.java
ae9f5c26262b1d7501443d54492ccbde1dd7801e 24-Nov-2016 James Lemieux <jplemieux@google.com> Removing a ringtone now updates the alarms and timers that use it

Bug: 32647664

After confirming the side-effects with the user, removing a custom
ringtone now resets alarms that use it to the system default ringtone
for alarms. Similarly, if timers are set to use the custom ringtone, they
are reset to use the default in-app ringtone for timers.

Change-Id: I76c58eaeab456469096e5a62c78f2d3381b8d26a
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/RingtonePickerActivity.java
52757e194662a63f8fa2d754b021d70c127a5170 17-Nov-2016 Sean Stout <sstout@google.com> No longer request READ_EXTERNAL_STORAGE permission.

Bug: 32946320
Test: manual - Check custom ringtone picker

With the ACTION_OPEN_DOCUMENT intent along with
FLAG_GRANT_PERSISTABLE_URI_PERMISSION, READ_EXTERNAL_STORAGE
is no longer necessary.

Change-Id: I02531a6257d6eef165266d4ca0ad20b49b75708c
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/RingtonePickerActivity.java
baed4fe9b41db74d9c428a377a630ee2010d5126 10-Nov-2016 James Lemieux <jplemieux@google.com> Support no selection in ringtone picker

Bug: 32703296

If the picker is created with an initial selection that is absent
in the list of options, clear the selection and avoid altering the
ringtone unless the user explicitly selects a new one.

Change-Id: If86f04bfa8777039412c1e1767bbaa252f93ac30
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/RingtonePickerActivity.java
3db493ee5cacf6673dd42e1febf14f0aa5f71771 08-Nov-2016 Sean Stout <sstout@google.com> In ringtone picker, volume buttons now control alarm volume.

Bug: 32722706
Test: manual - Use volume buttons in ringtone picker
Change-Id: I34b19d91d0077d5547b5061b38588627b99c3ba2
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/RingtonePickerActivity.java
33781c882e4229f4ec1a8fafbabb9d4b8b8e2932 14-Oct-2016 James Lemieux <jplemieux@google.com> Implementing fullscreen ringtone picker

Bug: 27856432

Ringtone picker now looks more like the rest of the app. Also allows
the user to pick a file chosen from their file system using the built-in
file browser.

Change-Id: I8ce9dbc28e414d188f52b3885960a475a16061d8
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/RingtonePickerActivity.java