mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-01 06:22:55 +01:00
Fossil Hybrid HR: fix initialization on older firmwares
Avoid NPE when no applications are available
This commit is contained in:
parent
2c12b1bf73
commit
e9766da89c
@ -148,7 +148,7 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
|
||||
HashMap<String, Bitmap> appIconCache = new HashMap<>();
|
||||
String lastPostedApp = null;
|
||||
|
||||
List<ApplicationInformation> installedApplications;
|
||||
List<ApplicationInformation> installedApplications = new ArrayList();
|
||||
|
||||
enum CONNECTION_MODE {
|
||||
NOT_INITIALIZED,
|
||||
@ -1430,4 +1430,4 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user