OSDN Git Service

Call MediaStore#scanFile directly in RingtoneManager
authorWinson <chiuwinson@google.com>
Tue, 7 May 2019 00:01:55 +0000 (17:01 -0700)
committerWinson <chiuwinson@google.com>
Tue, 7 May 2019 00:06:02 +0000 (17:06 -0700)
commit295336f6e8d490a892464d5b4d99a622bcf8f9e2
tree6ed94d8f5a6f48d4fdf42f07fad5fcddfbb228ae
parentd7314d7ab38fded0016903b800bc7278853fe391
Call MediaStore#scanFile directly in RingtoneManager

Reproduced the failing case, even without thread pool changes.
Since RingtoneManager was blocking on the call anyways, changing it
to use the synchronous scanFile method directly should be fine.

Bug: 131882699

Test: manual add MP3 with RingtonePickerActivity

Change-Id: I53b49ed17403cda93ecfefb6985133b161a96983
media/java/android/media/RingtoneManager.java