1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-30 18:44:11 +02:00

Pebble: Always allow reply action even if untested features are turned off

This commit is contained in:
Andreas Shimokawa 2018-11-01 17:02:33 +01:00
parent e54f1eaccc
commit 5fc2a704a3

View File

@ -379,7 +379,6 @@ public class DeviceCommunicationService extends Service implements SharedPrefere
if (((notificationSpec.flags & NotificationSpec.FLAG_WEARABLE_ACTIONS) > 0)
|| (notificationSpec.type == NotificationType.GENERIC_SMS && notificationSpec.phoneNumber != null)) {
// NOTE: maybe not where it belongs
if (prefs.getBoolean("pebble_force_untested", false)) {
// I would rather like to save that as an array in SharedPreferences
// this would work but I dont know how to do the same in the Settings Activity's xml
ArrayList<String> replies = new ArrayList<>();
@ -391,7 +390,6 @@ public class DeviceCommunicationService extends Service implements SharedPrefere
}
notificationSpec.cannedReplies = replies.toArray(new String[replies.size()]);
}
}
mDeviceSupport.onNotification(notificationSpec);
break;