|
|
@ -154,17 +154,18 @@ public class ServiceSynchronize extends ServiceBase {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onChanged(TupleMessageStats stats) {
|
|
|
|
public void onChanged(TupleMessageStats stats) {
|
|
|
|
if (stats != null) {
|
|
|
|
if (stats == null)
|
|
|
|
boolean unseen_ignored = prefs.getBoolean("unseen_ignored", false);
|
|
|
|
stats = new TupleMessageStats();
|
|
|
|
if (!unseen_ignored || stats.ignored == null)
|
|
|
|
|
|
|
|
stats.ignored = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!stats.equals(lastStats)) {
|
|
|
|
boolean unseen_ignored = prefs.getBoolean("unseen_ignored", false);
|
|
|
|
Log.i("Stats " + stats);
|
|
|
|
if (!unseen_ignored || stats.ignored == null)
|
|
|
|
lastStats = stats;
|
|
|
|
stats.ignored = 0;
|
|
|
|
|
|
|
|
|
|
|
|
setUnseen(stats.unseen - stats.ignored);
|
|
|
|
if (!stats.equals(lastStats)) {
|
|
|
|
}
|
|
|
|
Log.i("Stats " + stats);
|
|
|
|
|
|
|
|
lastStats = stats;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setUnseen(stats.unseen - stats.ignored);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|