This commit is contained in:
kunfei
2023-12-07 16:04:53 +08:00
parent bf298b0474
commit 4ff9f758f8
5 changed files with 9 additions and 5 deletions
+4 -1
View File
@@ -17,6 +17,8 @@
tools:ignore="ScopedStorage" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<application
android:name=".App"
@@ -422,12 +424,13 @@
android:foregroundServiceType="dataSync" />
<service
android:name=".service.WebService"
android:foregroundServiceType="connectedDevice" />
android:foregroundServiceType="dataSync" />
<service
android:name=".service.WebTileService"
android:exported="true"
android:icon="@drawable/ic_web_service_noti"
android:label="legado Web Service"
android:foregroundServiceType="dataSync"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE" />
+1 -1
View File
@@ -50,10 +50,10 @@ class App : Application() {
//预下载Cronet so
Cronet.preDownload()
createNotificationChannels()
applyDayNight(this)
LiveEventBus.config()
.lifecycleObserverAlwaysActive(true)
.autoClear(false)
applyDayNight(this)
registerActivityLifecycleCallbacks(LifecycleHelp)
defaultSharedPreferences.registerOnSharedPreferenceChangeListener(AppConfig)
DefaultData.upVersion()
@@ -16,6 +16,7 @@ object IntentHelp {
fun getBrowserIntent(uri: Uri): Intent {
val intent = Intent(Intent.ACTION_VIEW)
intent.`package` = appCtx.packageName
intent.data = uri
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
if (intent.resolveActivity(appCtx.packageManager) == null) {