From 7c6e56536795e02dc3666682b4e614b816d13c21 Mon Sep 17 00:00:00 2001 From: vanous Date: Tue, 6 Jul 2021 09:22:52 +0200 Subject: [PATCH] add transliteration to BangleJS and WaspOS --- .../devices/banglejs/BangleJSCoordinator.java | 8 ++++++++ .../gadgetbridge/devices/waspos/WaspOSCoordinator.java | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSCoordinator.java index dcee25c50..ad052bf1e 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSCoordinator.java @@ -30,6 +30,7 @@ import androidx.annotation.NonNull; import java.util.Collection; import java.util.Collections; +import nodomain.freeyourgadget.gadgetbridge.R; import nodomain.freeyourgadget.gadgetbridge.devices.AbstractDeviceCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.InstallHandler; import nodomain.freeyourgadget.gadgetbridge.devices.SampleProvider; @@ -165,4 +166,11 @@ public class BangleJSCoordinator extends AbstractDeviceCoordinator { public InstallHandler findInstallHandler(Uri uri, Context context) { return null; } + + public int[] getSupportedDeviceSpecificSettings(GBDevice device) { + return new int[]{ + R.xml.devicesettings_transliteration + }; + } + } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/waspos/WaspOSCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/waspos/WaspOSCoordinator.java index 772868713..f1aa48252 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/waspos/WaspOSCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/waspos/WaspOSCoordinator.java @@ -30,6 +30,7 @@ import androidx.annotation.NonNull; import java.util.Collection; import java.util.Collections; +import nodomain.freeyourgadget.gadgetbridge.R; import nodomain.freeyourgadget.gadgetbridge.devices.AbstractDeviceCoordinator; import nodomain.freeyourgadget.gadgetbridge.devices.InstallHandler; import nodomain.freeyourgadget.gadgetbridge.devices.SampleProvider; @@ -164,4 +165,10 @@ public class WaspOSCoordinator extends AbstractDeviceCoordinator { public InstallHandler findInstallHandler(Uri uri, Context context) { return null; } + public int[] getSupportedDeviceSpecificSettings(GBDevice device) { + return new int[]{ + R.xml.devicesettings_transliteration + }; + } + }