mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-27 02:55:50 +01:00
Xiaomi: Remove not-implemented preferences
This commit is contained in:
parent
961e9f1bf9
commit
2063bc2dfd
@ -348,14 +348,11 @@ public abstract class XiaomiCoordinator extends AbstractBLEDeviceCoordinator {
|
|||||||
public int[] getSupportedDeviceSpecificSettings(final GBDevice device) {
|
public int[] getSupportedDeviceSpecificSettings(final GBDevice device) {
|
||||||
final List<Integer> settings = new ArrayList<>();
|
final List<Integer> settings = new ArrayList<>();
|
||||||
|
|
||||||
// TODO review this
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Time
|
// Time
|
||||||
//
|
//
|
||||||
settings.add(R.xml.devicesettings_header_time);
|
settings.add(R.xml.devicesettings_header_time);
|
||||||
settings.add(R.xml.devicesettings_timeformat);
|
settings.add(R.xml.devicesettings_timeformat);
|
||||||
settings.add(R.xml.devicesettings_dateformat_2);
|
|
||||||
if (getWorldClocksSlotCount() > 0) {
|
if (getWorldClocksSlotCount() > 0) {
|
||||||
settings.add(R.xml.devicesettings_world_clocks);
|
settings.add(R.xml.devicesettings_world_clocks);
|
||||||
}
|
}
|
||||||
@ -374,7 +371,7 @@ public abstract class XiaomiCoordinator extends AbstractBLEDeviceCoordinator {
|
|||||||
settings.add(R.xml.devicesettings_heartrate_sleep_alert_activity_stress_spo2);
|
settings.add(R.xml.devicesettings_heartrate_sleep_alert_activity_stress_spo2);
|
||||||
settings.add(R.xml.devicesettings_inactivity_dnd_no_threshold);
|
settings.add(R.xml.devicesettings_inactivity_dnd_no_threshold);
|
||||||
settings.add(R.xml.devicesettings_sleep_mode_schedule);
|
settings.add(R.xml.devicesettings_sleep_mode_schedule);
|
||||||
settings.add(R.xml.devicesettings_goal_notification);
|
// TODO not implemented settings.add(R.xml.devicesettings_goal_notification);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Workout
|
// Workout
|
||||||
@ -387,12 +384,12 @@ public abstract class XiaomiCoordinator extends AbstractBLEDeviceCoordinator {
|
|||||||
// Notifications
|
// Notifications
|
||||||
//
|
//
|
||||||
settings.add(R.xml.devicesettings_header_notifications);
|
settings.add(R.xml.devicesettings_header_notifications);
|
||||||
settings.add(R.xml.devicesettings_display_caller);
|
// TODO not implemented settings.add(R.xml.devicesettings_display_caller);
|
||||||
settings.add(R.xml.devicesettings_vibrationpatterns);
|
// TODO not implemented settings.add(R.xml.devicesettings_vibrationpatterns);
|
||||||
settings.add(R.xml.devicesettings_donotdisturb_withauto_and_always);
|
// TODO not implemented settings.add(R.xml.devicesettings_donotdisturb_withauto_and_always);
|
||||||
settings.add(R.xml.devicesettings_send_app_notifications);
|
settings.add(R.xml.devicesettings_send_app_notifications);
|
||||||
settings.add(R.xml.devicesettings_screen_on_on_notifications);
|
// TODO not implemented settings.add(R.xml.devicesettings_screen_on_on_notifications);
|
||||||
settings.add(R.xml.devicesettings_autoremove_notifications);
|
// TODO not implemented settings.add(R.xml.devicesettings_autoremove_notifications);
|
||||||
if (getCannedRepliesSlotCount(device) > 0) {
|
if (getCannedRepliesSlotCount(device) > 0) {
|
||||||
settings.add(R.xml.devicesettings_canned_dismisscall_16);
|
settings.add(R.xml.devicesettings_canned_dismisscall_16);
|
||||||
}
|
}
|
||||||
@ -483,40 +480,6 @@ public abstract class XiaomiCoordinator extends AbstractBLEDeviceCoordinator {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsNotificationVibrationPatterns() {
|
|
||||||
// TODO maybe can use this
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsNotificationVibrationRepetitionPatterns() {
|
|
||||||
// TODO maybe can use this
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean supportsNotificationLedPatterns() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public AbstractNotificationPattern[] getNotificationVibrationPatterns() {
|
|
||||||
// TODO maybe can use this
|
|
||||||
return new AbstractNotificationPattern[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public AbstractNotificationPattern[] getNotificationVibrationRepetitionPatterns() {
|
|
||||||
// TODO maybe can use this
|
|
||||||
return new AbstractNotificationPattern[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public AbstractNotificationPattern[] getNotificationLedPatterns() {
|
|
||||||
return new AbstractNotificationPattern[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
protected static Prefs getPrefs(final GBDevice device) {
|
protected static Prefs getPrefs(final GBDevice device) {
|
||||||
return new Prefs(GBApplication.getDeviceSpecificSharedPrefs(device.getAddress()));
|
return new Prefs(GBApplication.getDeviceSpecificSharedPrefs(device.getAddress()));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user