mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
committed by
Greyson Parrelli
parent
ab34a9b027
commit
fd6a2c6b10
@@ -1,6 +1,5 @@
|
||||
package org.thoughtcrime.securesms.registration;
|
||||
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -58,9 +57,9 @@ public final class RegistrationRepository {
|
||||
|
||||
private static final String TAG = Log.tag(RegistrationRepository.class);
|
||||
|
||||
private final Application context;
|
||||
private final Context context;
|
||||
|
||||
public RegistrationRepository(@NonNull Application context) {
|
||||
public RegistrationRepository(@NonNull Context context) {
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package org.thoughtcrime.securesms.registration
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
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: Application) {
|
||||
class VerifyAccountRepository(private val context: Context) {
|
||||
|
||||
fun requestVerificationCode(
|
||||
e164: String,
|
||||
|
||||
Reference in New Issue
Block a user