Extras: Add dynamic theme sound effects support

This commit checks whether there is a preexisting file in the themed
directory "/data/system/theme/audio/ui/" and if so, change the base
file paths for the sound. If the file does not exist in the theme
directory, then use the default sounds.

At the current moment, this will require a soft reboot to work.

Change-Id: I7666c2bd259443ccec442bf6059786bea3dc069e
[harsh@prjkt.io: Rewrite for Pie]
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
1 file changed