mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-02-03 13:37:32 +01:00
Fossil Hybrid HR: Add try-catch block that was missing in 7e844367e
This commit is contained in:
parent
602586e9c3
commit
365bb2aea4
@ -218,8 +218,12 @@ public abstract class AbstractAppManagerFragment extends Fragment {
|
||||
if ((app.getType() == GBDeviceApp.Type.WATCHFACE) && (!QHybridConstants.HYBRIDHR_WATCHFACE_VERSION.equals(app.getVersion()))) {
|
||||
app.setUpToDate(false);
|
||||
}
|
||||
if ((app.getType() == GBDeviceApp.Type.APP_GENERIC) && ((new Version(app.getVersion())).smallerThan(new Version(QHybridConstants.KNOWN_WAPP_VERSIONS.get(app.getName()))))) {
|
||||
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()))))) {
|
||||
app.setUpToDate(false);
|
||||
}
|
||||
} catch (IllegalArgumentException e) {
|
||||
LOG.warn("Couldn't read app version", e);
|
||||
}
|
||||
}
|
||||
cachedAppList.add(app);
|
||||
|
Loading…
x
Reference in New Issue
Block a user