diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/WatchAdapter.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/WatchAdapter.java index 1c34058ee..2e26707c8 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/WatchAdapter.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/WatchAdapter.java @@ -43,7 +43,19 @@ public abstract class WatchAdapter { public abstract boolean supportsFindDevice(); public abstract boolean supportsExtendedVibration(); public abstract boolean supportsActivityHand(); - public abstract String getModelName(); + + public String getModelName() { + String modelNumber = getDeviceSupport().getDevice().getModel(); + switch (modelNumber) { + case "HW.0.0": + return "Q Commuter"; + case "HL.0.0": + return "Q Activist"; + case "DN.1.0": + return "Hybrid HR Collider"; + } + return "unknwon Q"; + } public abstract void onFetchActivityData(); diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil/FossilWatchAdapter.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil/FossilWatchAdapter.java index b1ef7ec3e..995734ae5 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil/FossilWatchAdapter.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil/FossilWatchAdapter.java @@ -258,20 +258,6 @@ public class FossilWatchAdapter extends WatchAdapter { throw new UnsupportedOperationException("Model " + modelNumber + " not supported"); } - @Override - public String getModelName() { - String modelNumber = getDeviceSupport().getDevice().getModel(); - switch (modelNumber) { - case "HW.0.0": - return "Q Commuter"; - case "HL.0.0": - return "Q Activist"; - case "DN.1.0": - return "Hybrid HR"; - } - return "unknwon Q"; - } - @Override public void onFetchActivityData() { diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/misfit/MisfitWatchAdapter.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/misfit/MisfitWatchAdapter.java index 3f4ebc357..43df8c2e7 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/misfit/MisfitWatchAdapter.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/misfit/MisfitWatchAdapter.java @@ -435,20 +435,6 @@ public class MisfitWatchAdapter extends WatchAdapter { throw new UnsupportedOperationException("Model " + modelNumber + " not supported"); } - @Override - public String getModelName() { - String modelNumber = getDeviceSupport().getDevice().getModel(); - switch (modelNumber) { - case "HW.0.0": - return "Q Commuter"; - case "HL.0.0": - return "Q Activist"; - case "DN.1.0": - return "Hybrid HR"; - } - return "unknwon Q"; - } - @Override public void onFetchActivityData() { requestQueue.add(new BatteryLevelRequest());