From 283956c10767b9313919af29e3029691c572a616 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Sun, 8 Sep 2024 14:35:36 +0200 Subject: [PATCH] Bump targetSdk from 33 to 35 --- build.gradle.kts | 2 +- src/org/kde/kdeconnect/Plugins/SMSPlugin/SMSPlugin.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 33d30f42..d393e334 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -51,7 +51,7 @@ android { compileSdk = 34 defaultConfig { minSdk = 21 - targetSdk = 33 + targetSdk = 35 proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro") } buildFeatures { diff --git a/src/org/kde/kdeconnect/Plugins/SMSPlugin/SMSPlugin.java b/src/org/kde/kdeconnect/Plugins/SMSPlugin/SMSPlugin.java index a90d9ce0..e70f5b58 100644 --- a/src/org/kde/kdeconnect/Plugins/SMSPlugin/SMSPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/SMSPlugin/SMSPlugin.java @@ -8,6 +8,7 @@ package org.kde.kdeconnect.Plugins.SMSPlugin; +import static androidx.core.content.ContextCompat.RECEIVER_EXPORTED; import static org.kde.kdeconnect.Plugins.TelephonyPlugin.TelephonyPlugin.PACKET_TYPE_TELEPHONY; import android.Manifest; @@ -375,7 +376,7 @@ public class SMSPlugin extends Plugin { IntentFilter refreshFilter = new IntentFilter(Transaction.REFRESH); refreshFilter.setPriority(500); - context.registerReceiver(messagesUpdateReceiver, refreshFilter); + context.registerReceiver(messagesUpdateReceiver, refreshFilter, RECEIVER_EXPORTED); Looper helperLooper = SMSHelper.MessageLooper.getLooper(); ContentObserver messageObserver = new MessageContentObserver(new Handler(helperLooper));