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:
parent
4398dd9855
commit
df2300777d
@ -803,7 +803,16 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
|
|||||||
e.printStackTrace();
|
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 (!sourceAppId.equals(this.lastPostedApp)) {
|
||||||
if (appIconCache.get(sourceAppId) == null) {
|
if (appIconCache.get(sourceAppId) == null) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user