mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
pass GBDevice down to ExternalPebbleJSActivity to determine the platform version (aplite,basalt,chalk)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package nodomain.freeyourgadget.gadgetbridge.util;
|
||||
|
||||
public class PebbleUtils {
|
||||
public static String getPlatformName(String hwRev) {
|
||||
String platformName;
|
||||
if (hwRev.startsWith("snowy")) {
|
||||
platformName = "basalt";
|
||||
} else if (hwRev.startsWith("spalding")) {
|
||||
platformName = "chalk";
|
||||
} else {
|
||||
platformName = "aplite";
|
||||
}
|
||||
return platformName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user