mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 21:55:10 +00:00
Oops
This commit is contained in:
@@ -72,6 +72,9 @@ public class TelepathyPlugin extends Plugin {
|
|||||||
String phoneNo = np.getString("phoneNumber");
|
String phoneNo = np.getString("phoneNumber");
|
||||||
String sms = np.getString("messageBody");
|
String sms = np.getString("messageBody");
|
||||||
try {
|
try {
|
||||||
|
int permissionCheck = ContextCompat.checkSelfPermission(context,
|
||||||
|
Manifest.permission.SEND_SMS);
|
||||||
|
|
||||||
if(permissionCheck == PackageManager.PERMISSION_GRANTED) {
|
if(permissionCheck == PackageManager.PERMISSION_GRANTED) {
|
||||||
SmsManager smsManager = SmsManager.getDefault();
|
SmsManager smsManager = SmsManager.getDefault();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user