1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 05:16:51 +01:00

Remove duplicated Auth key from the settings for Huami. Add Override where missing

This commit is contained in:
vanous 2022-07-29 09:47:17 +02:00
parent e2f38704ea
commit 4dc4a4f988
28 changed files with 3 additions and 137 deletions

View File

@ -123,13 +123,6 @@ public class AmazfitBand5Coordinator extends HuamiCoordinator {
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
@Override @Override
public String[] getSupportedLanguageSettings(GBDevice device) { public String[] getSupportedLanguageSettings(GBDevice device) {
return new String[]{ return new String[]{

View File

@ -94,7 +94,6 @@ public class AmazfitBipCoordinator extends HuamiCoordinator {
R.xml.devicesettings_bt_connected_advertisement, R.xml.devicesettings_bt_connected_advertisement,
R.xml.devicesettings_buttonactions_with_longpress, R.xml.devicesettings_buttonactions_with_longpress,
R.xml.devicesettings_device_actions, R.xml.devicesettings_device_actions,
R.xml.devicesettings_pairingkey,
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }

View File

@ -86,12 +86,4 @@ public class AmazfitBipLiteCoordinator extends AmazfitBipCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
} }

View File

@ -113,12 +113,6 @@ public class AmazfitBipSCoordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
@Override @Override
public int getBondingStyle() { public int getBondingStyle() {

View File

@ -126,12 +126,7 @@ public class AmazfitBipUCoordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
@Override @Override
public String[] getSupportedLanguageSettings(GBDevice device) { public String[] getSupportedLanguageSettings(GBDevice device) {
return new String[]{ return new String[]{

View File

@ -125,12 +125,7 @@ public class AmazfitBipUProCoordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
@Override @Override
public String[] getSupportedLanguageSettings(GBDevice device) { public String[] getSupportedLanguageSettings(GBDevice device) {
return new String[]{ return new String[]{

View File

@ -101,7 +101,6 @@ public class AmazfitCorCoordinator extends HuamiCoordinator {
R.xml.devicesettings_reserve_reminders_calendar, R.xml.devicesettings_reserve_reminders_calendar,
R.xml.devicesettings_bt_connected_advertisement, R.xml.devicesettings_bt_connected_advertisement,
R.xml.devicesettings_device_actions, R.xml.devicesettings_device_actions,
R.xml.devicesettings_pairingkey,
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }

View File

@ -103,7 +103,6 @@ public class AmazfitCor2Coordinator extends HuamiCoordinator {
R.xml.devicesettings_reserve_reminders_calendar, R.xml.devicesettings_reserve_reminders_calendar,
R.xml.devicesettings_bt_connected_advertisement, R.xml.devicesettings_bt_connected_advertisement,
R.xml.devicesettings_device_actions, R.xml.devicesettings_device_actions,
R.xml.devicesettings_pairingkey,
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }

View File

@ -105,10 +105,4 @@ public class AmazfitGTRCoordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
} }

View File

@ -104,10 +104,4 @@ public class AmazfitGTRLiteCoordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
} }

View File

@ -111,10 +111,4 @@ public class AmazfitGTR2Coordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
} }

View File

@ -111,10 +111,4 @@ public class AmazfitGTR2eCoordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
} }

View File

@ -105,10 +105,4 @@ public class AmazfitGTSCoordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
} }

View File

@ -111,10 +111,4 @@ public class AmazfitGTS2Coordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
} }

View File

@ -76,7 +76,6 @@ public class AmazfitGTS2MiniCoordinator extends AmazfitGTS2Coordinator {
R.xml.devicesettings_expose_hr_thirdparty, R.xml.devicesettings_expose_hr_thirdparty,
R.xml.devicesettings_bt_connected_advertisement, R.xml.devicesettings_bt_connected_advertisement,
R.xml.devicesettings_device_actions, R.xml.devicesettings_device_actions,
R.xml.devicesettings_pairingkey,
R.xml.devicesettings_high_mtu, R.xml.devicesettings_high_mtu,
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };

View File

@ -111,10 +111,4 @@ public class AmazfitGTS2eCoordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
} }

View File

@ -97,13 +97,8 @@ public class AmazfitNeoCoordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
@Override
public String[] getSupportedLanguageSettings(GBDevice device) { public String[] getSupportedLanguageSettings(GBDevice device) {
return new String[]{ return new String[]{
"auto", "auto",

View File

@ -105,10 +105,4 @@ public class AmazfitTRexCoordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
} }

View File

@ -105,10 +105,4 @@ public class AmazfitTRexProCoordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
} }

View File

@ -105,10 +105,4 @@ public class AmazfitVergeLCoordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
} }

View File

@ -113,12 +113,6 @@ public class AmazfitXCoordinator extends HuamiCoordinator {
} }
@Override @Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
public String[] getSupportedLanguageSettings(GBDevice device) { public String[] getSupportedLanguageSettings(GBDevice device) {
return new String[]{ return new String[]{
"auto", "auto",

View File

@ -94,7 +94,6 @@ public class MiBand2Coordinator extends HuamiCoordinator {
R.xml.devicesettings_buttonactions, R.xml.devicesettings_buttonactions,
R.xml.devicesettings_reserve_alarms_calendar, R.xml.devicesettings_reserve_alarms_calendar,
R.xml.devicesettings_bt_connected_advertisement, R.xml.devicesettings_bt_connected_advertisement,
R.xml.devicesettings_pairingkey,
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }

View File

@ -96,7 +96,6 @@ public class MiBand2HRXCoordinator extends HuamiCoordinator {
R.xml.devicesettings_liftwrist_display, R.xml.devicesettings_liftwrist_display,
R.xml.devicesettings_inactivity_dnd, R.xml.devicesettings_inactivity_dnd,
R.xml.devicesettings_rotatewrist_cycleinfo, R.xml.devicesettings_rotatewrist_cycleinfo,
R.xml.devicesettings_pairingkey,
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }

View File

@ -118,7 +118,6 @@ public class MiBand3Coordinator extends HuamiCoordinator {
R.xml.devicesettings_expose_hr_thirdparty, R.xml.devicesettings_expose_hr_thirdparty,
R.xml.devicesettings_bt_connected_advertisement, R.xml.devicesettings_bt_connected_advertisement,
R.xml.devicesettings_device_actions, R.xml.devicesettings_device_actions,
R.xml.devicesettings_pairingkey,
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }

View File

@ -113,12 +113,6 @@ public class MiBand4Coordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
@Override @Override
public String[] getSupportedLanguageSettings(GBDevice device) { public String[] getSupportedLanguageSettings(GBDevice device) {

View File

@ -128,13 +128,6 @@ public class MiBand5Coordinator extends HuamiCoordinator {
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
@Override @Override
public String[] getSupportedLanguageSettings(GBDevice device) { public String[] getSupportedLanguageSettings(GBDevice device) {
return new String[]{ return new String[]{

View File

@ -108,12 +108,6 @@ public class MiBand6Coordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
@Override @Override
public String[] getSupportedLanguageSettings(GBDevice device) { public String[] getSupportedLanguageSettings(GBDevice device) {

View File

@ -104,10 +104,4 @@ public class ZeppECoordinator extends HuamiCoordinator {
R.xml.devicesettings_transliteration R.xml.devicesettings_transliteration
}; };
} }
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{
R.xml.devicesettings_pairingkey
};
}
} }