mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-24 16:21:16 +02:00
App Manager: Only set up to date apps on FOSSILQHYBRID
This commit is contained in:
parent
6dcd055d0d
commit
c1339aa5c6
@ -143,17 +143,20 @@ public abstract class AbstractAppManagerFragment extends Fragment {
|
||||
|
||||
GBDeviceApp app = new GBDeviceApp(uuid, appName, appCreator, appVersion, appType, previewImage);
|
||||
app.setOnDevice(true);
|
||||
if ((mGBDevice.getType() == DeviceType.FOSSILQHYBRID) && (app.getType() == GBDeviceApp.Type.WATCHFACE) && (!QHybridConstants.HYBRIDHR_WATCHFACE_VERSION.equals(appVersion))) {
|
||||
app.setUpToDate(false);
|
||||
}
|
||||
try {
|
||||
if ((app.getType() == GBDeviceApp.Type.APP_GENERIC) && ((new Version(app.getVersion())).smallerThan(new Version(QHybridConstants.KNOWN_WAPP_VERSIONS.get(app.getName()))))) {
|
||||
if (mGBDevice.getType() == DeviceType.FOSSILQHYBRID) {
|
||||
if ((app.getType() == GBDeviceApp.Type.WATCHFACE) && (!QHybridConstants.HYBRIDHR_WATCHFACE_VERSION.equals(appVersion))) {
|
||||
app.setUpToDate(false);
|
||||
}
|
||||
} catch (IllegalArgumentException e) {
|
||||
LOG.warn("App JSON: " + app.getJSON().toString());
|
||||
LOG.warn("Couldn't read app version", e);
|
||||
try {
|
||||
if ((app.getType() == GBDeviceApp.Type.APP_GENERIC) && ((new Version(app.getVersion())).smallerThan(new Version(QHybridConstants.KNOWN_WAPP_VERSIONS.get(app.getName()))))) {
|
||||
app.setUpToDate(false);
|
||||
}
|
||||
} catch (IllegalArgumentException e) {
|
||||
LOG.warn("App JSON: " + app.getJSON().toString());
|
||||
LOG.warn("Couldn't read app version", e);
|
||||
}
|
||||
}
|
||||
|
||||
if (filterApp(app)) {
|
||||
appList.add(app);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user