mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 10:51:27 +01:00
Update target SDK to 34.
This commit is contained in:
committed by
mtang-signal
parent
6424c6bc99
commit
dc7208922c
@@ -8,6 +8,7 @@ import android.content.IntentFilter;
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.core.content.ContextCompat;
|
||||
|
||||
import com.google.android.gms.auth.api.phone.SmsRetriever;
|
||||
import com.google.android.gms.common.api.CommonStatusCodes;
|
||||
@@ -34,7 +35,7 @@ public class SmsRetrieverReceiver extends BroadcastReceiver {
|
||||
|
||||
public void registerReceiver() {
|
||||
Log.d(TAG, "Registering SMS retriever receiver");
|
||||
context.registerReceiver(this, new IntentFilter(SmsRetriever.SMS_RETRIEVED_ACTION));
|
||||
ContextCompat.registerReceiver(context, this, new IntentFilter(SmsRetriever.SMS_RETRIEVED_ACTION), ContextCompat.RECEIVER_EXPORTED);
|
||||
}
|
||||
|
||||
public void unregisterReceiver() {
|
||||
|
||||
Reference in New Issue
Block a user