mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Implement some further JS methods to make additional watchapps happy
This commit is contained in:
@@ -12,4 +12,16 @@ public class PebbleUtils {
|
||||
}
|
||||
return platformName;
|
||||
}
|
||||
public static String getModel(String hwRev) {
|
||||
//TODO: get real data?
|
||||
String model;
|
||||
if (hwRev.startsWith("snowy")) {
|
||||
model = "pebble_time_black";
|
||||
} else if (hwRev.startsWith("spalding")) {
|
||||
model = "pebble_time_round_black_20mm";
|
||||
} else {
|
||||
model = "pebble_black";
|
||||
}
|
||||
return model;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user