2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 14:15:14 +00:00

Revert "Fixing sent SMS not appearing in the SMS app on old phones"

Doesn't seem to actually work.

This reverts commit 40c9b67033.
This commit is contained in:
Albert Vaca
2017-05-23 23:00:31 +02:00
parent e68925c852
commit 7ad141bb6d
2 changed files with 0 additions and 9 deletions

View File

@@ -24,7 +24,6 @@
<uses-permission android:name="android.permission.READ_PHONE_STATE" android:required="false" />
<uses-permission android:name="android.permission.RECEIVE_SMS" android:required="false" />
<uses-permission android:name="android.permission.SEND_SMS" android:required="false" />
<uses-permission android:name="android.permission.WRITE_SMS" android:required="false" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

View File

@@ -20,9 +20,6 @@
package org.kde.kdeconnect.Plugins.TelepathyPlugin;
import android.content.ContentValues;
import android.net.Uri;
import android.provider.Telephony;
import android.telephony.SmsManager;
import android.util.Log;
@@ -76,11 +73,6 @@ public class TelepathyPlugin extends Plugin {
// properly handles that case
smsManager.sendMultipartTextMessage(phoneNo, null, parts, null, null);
ContentValues values = new ContentValues();
values.put("address", phoneNo);
values.put("body", sms);
context.getContentResolver().insert(Uri.parse("content://sms/sent"), values);
//TODO: Notify other end
} catch (Exception e) {
//TODO: Notify other end