add transliteration to BangleJS and WaspOS

This commit is contained in:
vanous 2021-07-06 09:22:52 +02:00
parent 2b7e4b6683
commit 7c6e565367
2 changed files with 15 additions and 0 deletions

View File

@ -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
};
}
}

View File

@ -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
};
}
}