Revert "Fix dynamic language override for app context."

This reverts commit 75a19ada23f4fc0d5111fb74d234c7c6f48ba503.
This commit is contained in:
Rashad Sookram
2022-01-21 18:11:49 -05:00
committed by Greyson Parrelli
parent 78acc485fc
commit 35d0f1fc8c
25 changed files with 74 additions and 76 deletions

View File

@@ -1,6 +1,6 @@
package org.thoughtcrime.securesms.components.settings.app.changenumber
import android.content.Context
import android.app.Application
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: Context = ApplicationDependencies.getApplication()
val context: Application = ApplicationDependencies.getApplication()
val localNumber: String = SignalStore.account().e164!!
val password: String = SignalStore.account().servicePassword!!