Skip to content

Commit

Permalink
Updated the WorkManager configuration to replace `BuildConfig.APPLICA…
Browse files Browse the repository at this point in the history
…TION_ID` with `ANG_PACKAGE` for setting the default process name. This ensures consistent configuration handling in background processes. (#3970)

Changes:
- Modified `setDefaultProcessName` to use `ANG_PACKAGE` instead of `BuildConfig.APPLICATION_ID`.

This resolves inconsistencies in process naming conventions and aligns with project requirements.
  • Loading branch information
CodeWithTamim authored Nov 18, 2024
1 parent 2626462 commit ab22bb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion V2rayNG/app/src/main/java/com/v2ray/ang/AngApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import androidx.multidex.MultiDexApplication
import androidx.work.Configuration
import androidx.work.WorkManager
import com.tencent.mmkv.MMKV
import com.v2ray.ang.AppConfig.ANG_PACKAGE
import com.v2ray.ang.handler.SettingsManager
import com.v2ray.ang.util.Utils

Expand All @@ -22,7 +23,7 @@ class AngApplication : MultiDexApplication() {
}

private val workManagerConfiguration: Configuration = Configuration.Builder()
.setDefaultProcessName("${BuildConfig.APPLICATION_ID}:bg")
.setDefaultProcessName("${ANG_PACKAGE}:bg")
.build()

override fun onCreate() {
Expand Down

0 comments on commit ab22bb9

Please sign in to comment.