summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Göransson <david.goransson@mullvad.net>2024-08-28 09:59:12 +0200
committerDavid Göransson <david.goransson@mullvad.net>2024-08-28 11:07:28 +0200
commit3065e08d51509240fc4984b6d0d25fff4e2fab0e (patch)
tree9c50d001aff35ddd88af0a8f4f88a24ec9f9bdb5
parent7ead1cce4a7e12e8f42ed65c32323af5ff0d57f9 (diff)
downloadmullvadvpn-3065e08d51509240fc4984b6d0d25fff4e2fab0e.tar.xz
mullvadvpn-3065e08d51509240fc4984b6d0d25fff4e2fab0e.zip
Fix resource dependency
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/AppModule.kt1
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/di/UiModule.kt1
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 }