Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4035b639 authored by Andre Lago's avatar Andre Lago
Browse files

[SettingsProvider] Fix user id for ringtone cache

The ringtone caches are now user-dependant, so it is necessary to use
the correct user id when fetching the cache Uri

Bug: 30658854
Change-Id: I2fc52b23b9490f92b0ff32af57ef4206dbe9c09b
parent 35579aa7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1090,7 +1090,7 @@ public class SettingsProvider extends ContentProvider {
        }
        if (cacheName != null) {
            final File cacheFile = new File(
                    getRingtoneCacheDir(UserHandle.getCallingUserId()), cacheName);
                    getRingtoneCacheDir(owningUserId), cacheName);
            cacheFile.delete();
        }