Fix tile service

This commit is contained in:
世界 2023-08-12 20:00:53 +08:00
parent 3ec2c767c8
commit c26775e5fe
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 10 additions and 5 deletions

View file

@ -34,6 +34,11 @@
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -70,9 +75,10 @@
<data android:scheme="content" />
</intent-filter>
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
</intent-filter>
</activity>
<activity
@ -107,7 +113,7 @@
android:name=".bg.TileService"
android:directBootAware="true"
android:exported="true"
android:icon="@drawable/ic_launcher_foreground"
android:icon="@drawable/ic_menu"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"
tools:targetApi="n">
<intent-filter>

View file

@ -45,5 +45,4 @@ class TileService : TileService(), ServiceConnection.Callback {
}
}
}