Add wakelock

Actually add a wakelock to the music load process to prevent it from stopping the CPU mid-load.
This commit is contained in:
OxygenCobalt
2021-03-21 11:12:48 -06:00
parent ba79ac0001
commit f1c40d2539
5 changed files with 58 additions and 16 deletions
+5 -1
View File
@@ -3,11 +3,15 @@
package="org.oxycblt.auxio">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<queries />
<!--
TODO: Bite the bullet and just use SAF so you dont have to rely on a flag that is
probably going to be removed by Android 12/13 (Would also eliminate the dialogs dependency)
-->
<application
android:name=".AuxioApp"
android:allowBackup="true"