mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Revert "Fix dynamic language override for app context."
This reverts commit 75a19ada23f4fc0d5111fb74d234c7c6f48ba503.
This commit is contained in:
committed by
Greyson Parrelli
parent
78acc485fc
commit
35d0f1fc8c
@@ -1,5 +1,6 @@
|
||||
package org.thoughtcrime.securesms.registration;
|
||||
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -57,9 +58,9 @@ public final class RegistrationRepository {
|
||||
|
||||
private static final String TAG = Log.tag(RegistrationRepository.class);
|
||||
|
||||
private final Context context;
|
||||
private final Application context;
|
||||
|
||||
public RegistrationRepository(@NonNull Context context) {
|
||||
public RegistrationRepository(@NonNull Application context) {
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package org.thoughtcrime.securesms.registration
|
||||
|
||||
import android.content.Context
|
||||
import android.app.Application
|
||||
import io.reactivex.rxjava3.core.Single
|
||||
import io.reactivex.rxjava3.schedulers.Schedulers
|
||||
import org.signal.core.util.logging.Log
|
||||
@@ -28,7 +28,7 @@ import java.util.concurrent.TimeUnit
|
||||
/**
|
||||
* Request SMS/Phone verification codes to help prove ownership of a phone number.
|
||||
*/
|
||||
class VerifyAccountRepository(private val context: Context) {
|
||||
class VerifyAccountRepository(private val context: Application) {
|
||||
|
||||
fun requestVerificationCode(
|
||||
e164: String,
|
||||
|
||||
Reference in New Issue
Block a user