mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-11 01:21:56 +01:00
Pebble: Always allow reply action even if untested features are turned off
This commit is contained in:
parent
e54f1eaccc
commit
5fc2a704a3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user