1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-27 20:36:51 +01:00

Fossil Hybrid: avoid unnessecary widget rendering

This commit is contained in:
Daniel Dakhno 2020-12-24 14:35:22 +01:00
parent 4398dd9855
commit df2300777d

View File

@ -803,7 +803,16 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
e.printStackTrace();
}
if (sourceAppId != null) {
boolean showNotificationIcon = false;
for(Widget widget : widgets){
if(widget.getWidgetType() == Widget.WidgetType.LAST_NOTIFICATION){
showNotificationIcon = true;
break;
}
}
if (showNotificationIcon && sourceAppId != null) {
if (!sourceAppId.equals(this.lastPostedApp)) {
if (appIconCache.get(sourceAppId) == null) {
try {