mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-01 14:32:54 +01:00
Move devicesettings_transliteration to settings of each device
This commit is contained in:
parent
a6a6bfef17
commit
678cf006e0
@ -59,10 +59,6 @@ public class DeviceSettingsActivity extends AbstractGBActivity implements
|
||||
supportedSettings = ArrayUtils.addAll(supportedSettings, R.xml.devicesettings_chartstabs);
|
||||
}
|
||||
|
||||
// FIXME: this does not belong here
|
||||
if (!ArrayUtils.contains(supportedSettings, R.xml.devicesettings_transliteration)) {
|
||||
supportedSettings = ArrayUtils.addAll(supportedSettings, R.xml.devicesettings_transliteration);
|
||||
}
|
||||
fragment = DeviceSpecificSettingsFragment.newInstance(device.getAddress(), supportedSettings, supportedLanguages);
|
||||
}
|
||||
getSupportFragmentManager()
|
||||
|
@ -155,7 +155,8 @@ public class CasioGB6900DeviceCoordinator extends AbstractDeviceCoordinator {
|
||||
@Override
|
||||
public int[] getSupportedDeviceSpecificSettings(GBDevice device) {
|
||||
return new int[] {
|
||||
R.xml.devicesettings_disconnectnotification_noshed
|
||||
R.xml.devicesettings_disconnectnotification_noshed,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -166,7 +166,8 @@ public class CasioGBX100DeviceCoordinator extends AbstractDeviceCoordinator {
|
||||
R.xml.devicesettings_key_vibration,
|
||||
R.xml.devicesettings_operating_sounds,
|
||||
R.xml.devicesettings_fake_ring_duration,
|
||||
R.xml.devicesettings_autoremove_message
|
||||
R.xml.devicesettings_autoremove_message,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -181,6 +181,7 @@ public class FitProDeviceCoordinator extends AbstractDeviceCoordinator {
|
||||
R.xml.devicesettings_vibrations_enable,
|
||||
R.xml.devicesettings_notifications_enable,
|
||||
R.xml.devicesettings_fitpro,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -324,7 +324,8 @@ public class HPlusCoordinator extends AbstractDeviceCoordinator {
|
||||
public int[] getSupportedDeviceSpecificSettings(GBDevice device) {
|
||||
return new int[]{
|
||||
//R.xml.devicesettings_wearlocation, // disabled, since it is never used in code
|
||||
R.xml.devicesettings_timeformat
|
||||
R.xml.devicesettings_timeformat,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,8 @@ public class AmazfitBand5Coordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_high_mtu
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,8 @@ public class AmazfitBipCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_buttonactions_with_longpress,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -81,6 +81,7 @@ public class AmazfitBipLiteCoordinator extends AmazfitBipCoordinator {
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_relax_firmware_checks,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -95,7 +95,8 @@ public class AmazfitBipSCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,8 @@ public class AmazfitBipUCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,8 @@ public class AmazfitBipUProCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,8 @@ public class AmazfitCorCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_sync_calendar,
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -99,7 +99,8 @@ public class AmazfitCor2Coordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_sync_calendar,
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -98,7 +98,8 @@ public class AmazfitGTRCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_high_mtu
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -97,7 +97,8 @@ public class AmazfitGTRLiteCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_sync_calendar,
|
||||
R.xml.devicesettings_expose_hr_thirdparty,
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_pairingkey
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,8 @@ public class AmazfitGTR2Coordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_high_mtu
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,8 @@ public class AmazfitGTR2eCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_high_mtu
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -98,7 +98,8 @@ public class AmazfitGTSCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_high_mtu
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,8 @@ public class AmazfitGTS2Coordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_high_mtu
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,8 @@ public class AmazfitGTS2eCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_high_mtu
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -91,7 +91,8 @@ public class AmazfitNeoCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_high_mtu
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,8 @@ public class AmazfitTRexCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_high_mtu
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -98,7 +98,8 @@ public class AmazfitTRexProCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_high_mtu
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -98,7 +98,8 @@ public class AmazfitVergeLCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_disconnectnotification,
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_buttonactions_with_longpress,
|
||||
R.xml.devicesettings_pairingkey
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,8 @@ public class AmazfitXCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_high_mtu
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,8 @@ public class MiBand2Coordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_buttonactions,
|
||||
R.xml.devicesettings_reserve_alarms_calendar,
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_pairingkey
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -90,7 +90,8 @@ public class MiBand2HRXCoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_donotdisturb_withauto,
|
||||
R.xml.devicesettings_liftwrist_display,
|
||||
R.xml.devicesettings_rotatewrist_cycleinfo,
|
||||
R.xml.devicesettings_pairingkey
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -114,7 +114,8 @@ public class MiBand3Coordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_expose_hr_thirdparty,
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,8 @@ public class MiBand4Coordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_high_mtu
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,8 @@ public class MiBand5Coordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_high_mtu
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,8 @@ public class ZeppECoordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_bt_connected_advertisement,
|
||||
R.xml.devicesettings_device_actions,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_high_mtu
|
||||
R.xml.devicesettings_high_mtu,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -160,7 +160,8 @@ public class ID115Coordinator extends AbstractDeviceCoordinator {
|
||||
public int[] getSupportedDeviceSpecificSettings(GBDevice device) {
|
||||
return new int[]{
|
||||
R.xml.devicesettings_wearlocation,
|
||||
R.xml.devicesettings_screenorientation
|
||||
R.xml.devicesettings_screenorientation,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -167,6 +167,7 @@ public class LefunDeviceCoordinator extends AbstractDeviceCoordinator {
|
||||
R.xml.devicesettings_longsit,
|
||||
R.xml.devicesettings_hydration_reminder,
|
||||
R.xml.devicesettings_lefun_interface_language,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -196,7 +196,8 @@ public class WatchXPlusDeviceCoordinator extends AbstractDeviceCoordinator {
|
||||
R.xml.devicesettings_find_phone,
|
||||
R.xml.devicesettings_timeformat,
|
||||
R.xml.devicesettings_power_mode,
|
||||
R.xml.devicesettings_watchxplus
|
||||
R.xml.devicesettings_watchxplus,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -272,7 +272,8 @@ public class MakibesHR3Coordinator extends AbstractDeviceCoordinator {
|
||||
R.xml.devicesettings_liftwrist_display,
|
||||
R.xml.devicesettings_disconnectnotification,
|
||||
R.xml.devicesettings_donotdisturb_no_auto,
|
||||
R.xml.devicesettings_find_phone
|
||||
R.xml.devicesettings_find_phone,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -219,7 +219,8 @@ public class PebbleCoordinator extends AbstractDeviceCoordinator {
|
||||
return new int[]{
|
||||
R.xml.devicesettings_autoremove_notifications,
|
||||
R.xml.devicesettings_canned_reply_16,
|
||||
R.xml.devicesettings_canned_dismisscall_16
|
||||
R.xml.devicesettings_canned_dismisscall_16,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -248,7 +248,8 @@ public class QHybridCoordinator extends AbstractDeviceCoordinator {
|
||||
R.xml.devicesettings_autoremove_notifications,
|
||||
R.xml.devicesettings_canned_dismisscall_16,
|
||||
R.xml.devicesettings_pairingkey,
|
||||
R.xml.devicesettings_custom_deviceicon
|
||||
R.xml.devicesettings_custom_deviceicon,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
if (isHybridHR()) {
|
||||
|
@ -145,7 +145,8 @@ public class TLW64Coordinator extends AbstractDeviceCoordinator {
|
||||
return new int[]{
|
||||
R.xml.devicesettings_liftwrist_display_noshed,
|
||||
R.xml.devicesettings_longsit_noshed,
|
||||
R.xml.devicesettings_timeformat
|
||||
R.xml.devicesettings_timeformat,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
@ -167,6 +167,7 @@ public class ZeTimeCoordinator extends AbstractDeviceCoordinator {
|
||||
R.xml.devicesettings_timeformat,
|
||||
R.xml.devicesettings_wearlocation,
|
||||
R.xml.devicesettings_sync_calendar,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user