From 9fb3aaa9e06b2d2d82f3a16a1796d1364f04864e Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Fri, 14 Jul 2017 01:45:28 +0200 Subject: [PATCH] Oops --- .../kdeconnect/Plugins/TelepathyPlugin/TelepathyPlugin.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/kde/kdeconnect/Plugins/TelepathyPlugin/TelepathyPlugin.java b/src/org/kde/kdeconnect/Plugins/TelepathyPlugin/TelepathyPlugin.java index de466a9a..8ea837aa 100644 --- a/src/org/kde/kdeconnect/Plugins/TelepathyPlugin/TelepathyPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/TelepathyPlugin/TelepathyPlugin.java @@ -72,6 +72,9 @@ public class TelepathyPlugin extends Plugin { String phoneNo = np.getString("phoneNumber"); String sms = np.getString("messageBody"); try { + int permissionCheck = ContextCompat.checkSelfPermission(context, + Manifest.permission.SEND_SMS); + if(permissionCheck == PackageManager.PERMISSION_GRANTED) { SmsManager smsManager = SmsManager.getDefault();