2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-02 15:15:09 +00:00

fix sms sync

Missing break statements causes sync issues and SMS to be parsed as MMS and leads to the URI of a SMS not being found within the MMS content and SMS sync failing.
This commit is contained in:
Aditya Mehra
2023-04-12 17:12:57 +00:00
committed by Simon Redman
parent 6c2ffa5796
commit e07fe54d5c

View File

@@ -330,8 +330,10 @@ public class SMSHelper {
switch (transportType) { switch (transportType) {
case SMS: case SMS:
toReturn.add(parseSMS(context, messageInfo)); toReturn.add(parseSMS(context, messageInfo));
break;
case MMS: case MMS:
toReturn.add(parseMMS(context, messageInfo, userPhoneNumbers)); toReturn.add(parseMMS(context, messageInfo, userPhoneNumbers));
break;
} }
} catch (Exception e) { } catch (Exception e) {
// Swallow exceptions in case we get an error reading one message so that we // Swallow exceptions in case we get an error reading one message so that we