Fixes for AppChangeReceiver

This commit is contained in:
iKirby
2023-08-01 11:19:07 +08:00
committed by GitHub
parent fa8fa60c3c
commit 567d46dcdc
2 changed files with 1 additions and 5 deletions

View File

@@ -138,10 +138,6 @@
</intent-filter>
</receiver>
<receiver
android:name="io.nekohasekai.sfa.bg.AppChangeReceiver"
android:exported="true" />
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.cache"

View File

@@ -24,7 +24,7 @@ class AppChangeReceiver : BroadcastReceiver() {
return
}
val perAppProxyUpdateOnChange = Settings.perAppProxyUpdateOnChange
if (perAppProxyUpdateOnChange != Settings.PER_APP_PROXY_DISABLED) {
if (perAppProxyUpdateOnChange == Settings.PER_APP_PROXY_DISABLED) {
Log.d(TAG, "update on change disabled")
return
}