
Modify the minimal wdiget so that it can work on Android 11 and below. Was not actually that hard, mostly changing layouts around all things considered. This also splits up the default view and the main widget views, which makes managing UI state much easier.
73 lines
No EOL
2.7 KiB
XML
73 lines
No EOL
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
package="org.oxycblt.auxio">
|
|
|
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
|
|
<!-- Workaround for ExoPlayer requiring unnecessary permissions -->
|
|
<uses-permission
|
|
android:name="android.permission.ACCESS_NETWORK_STATE"
|
|
tools:node="remove" />
|
|
|
|
<queries />
|
|
|
|
<application
|
|
android:name=".AuxioApp"
|
|
android:allowBackup="true"
|
|
android:fullBackupContent="@xml/backup_descriptor"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="@string/info_app_name"
|
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|
android:supportsRtl="true"
|
|
android:theme="@style/Theme.Base">
|
|
|
|
<activity
|
|
android:name=".MainActivity"
|
|
android:exported="true"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:launchMode="singleTask"
|
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|
android:windowSoftInputMode="adjustPan">
|
|
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<action android:name="android.intent.action.MUSIC_PLAYER" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
<category android:name="android.intent.category.APP_MUSIC" />
|
|
</intent-filter>
|
|
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
<data android:scheme="content" />
|
|
<data android:mimeType="audio/*" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<service
|
|
android:name=".playback.system.PlaybackService"
|
|
android:foregroundServiceType="mediaPlayback"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:roundIcon="@mipmap/ic_launcher_round" />
|
|
|
|
<receiver
|
|
android:label="@string/info_widget_minimal"
|
|
android:name=".widgets.MinimalWidgetProvider"
|
|
android:exported="false">
|
|
|
|
<intent-filter>
|
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
</intent-filter>
|
|
|
|
<meta-data
|
|
android:name="android.appwidget.provider"
|
|
android:resource="@xml/widget_minimal" />
|
|
</receiver>
|
|
</application>
|
|
</manifest> |