diff options
| author | David Göransson <david.goransson@mullvad.net> | 2024-08-28 09:59:12 +0200 |
|---|---|---|
| committer | David Göransson <david.goransson@mullvad.net> | 2024-08-28 11:07:28 +0200 |
| commit | 3065e08d51509240fc4984b6d0d25fff4e2fab0e (patch) | |
| tree | 9c50d001aff35ddd88af0a8f4f88a24ec9f9bdb5 /android | |
| parent | 7ead1cce4a7e12e8f42ed65c32323af5ff0d57f9 (diff) | |
| download | mullvadvpn-3065e08d51509240fc4984b6d0d25fff4e2fab0e.tar.xz mullvadvpn-3065e08d51509240fc4984b6d0d25fff4e2fab0e.zip | |
Fix resource dependency
Diffstat (limited to 'android')
| -rw-r--r-- | android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/AppModule.kt | 1 | ||||
| -rw-r--r-- | android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/UiModule.kt | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/AppModule.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/AppModule.kt index e4722094f9..e8cd424156 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/AppModule.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/AppModule.kt @@ -37,4 +37,5 @@ val appModule = module { single { ConnectionProxy(get(), get(), get()) } single { LocaleRepository(get()) } single { RelayLocationTranslationRepository(get(), get(), MainScope()) } + single { androidContext().resources } } diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/UiModule.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/UiModule.kt index 929d1e3b99..1bfd860b01 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/UiModule.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/UiModule.kt @@ -103,7 +103,6 @@ val uiModule = module { single { ApplicationsProvider(get(), get(named(SELF_PACKAGE_NAME))) } scope<MainActivity> { scoped { ServiceConnectionManager(androidContext()) } } single { InetAddressValidator.getInstance() } - single { androidContext().resources } single { androidContext().assets } single { androidContext().contentResolver } |
