Fix dynamic language override for app context.

Fixes #11889
This commit is contained in:
Rashad Sookram
2022-01-19 14:49:30 -05:00
committed by Greyson Parrelli
parent ab34a9b027
commit fd6a2c6b10
25 changed files with 76 additions and 74 deletions

View File

@@ -1,6 +1,6 @@
package org.thoughtcrime.securesms.components.settings.app.changenumber
import android.app.Application
import android.content.Context
import androidx.annotation.WorkerThread
import androidx.lifecycle.AbstractSavedStateViewModelFactory
import androidx.lifecycle.LiveData
@@ -165,7 +165,7 @@ class ChangeNumberViewModel(
class Factory(owner: SavedStateRegistryOwner) : AbstractSavedStateViewModelFactory(owner, null) {
override fun <T : ViewModel?> create(key: String, modelClass: Class<T>, handle: SavedStateHandle): T {
val context: Application = ApplicationDependencies.getApplication()
val context: Context = ApplicationDependencies.getApplication()
val localNumber: String = SignalStore.account().e164!!
val password: String = SignalStore.account().servicePassword!!