From: Damyan Ivanov Date: Sat, 5 Jan 2019 08:26:51 +0000 (+0000) Subject: (commented) debug X-Git-Tag: v0.3~129 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=d3a8b658a1fc185202ab739eaa66080813729170;p=mobile-ledger.git (commented) debug --- diff --git a/app/src/main/java/net/ktnx/mobileledger/model/ObservableAtomicInteger.java b/app/src/main/java/net/ktnx/mobileledger/model/ObservableAtomicInteger.java index 79a2499c..218229fa 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/ObservableAtomicInteger.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/ObservableAtomicInteger.java @@ -39,11 +39,13 @@ public class ObservableAtomicInteger extends Observable { return holder.get(); } public void set(int newValue) { +// Log.d("atomic", "set"); holder.set(newValue); forceNotify(); } private void forceNotify() { setChanged(); +// Log.d("atomic", String.format("notifying %d observers", countObservers())); notifyObservers(); } // public void lazySet(int newValue) { @@ -81,11 +83,13 @@ public class ObservableAtomicInteger extends Observable { return result; } public int incrementAndGet() { +// Log.d("atomic", "incrementAndGet"); int result = holder.incrementAndGet(); forceNotify(); return result; } public int decrementAndGet() { +// Log.d("atomic", "decrementAndGet"); int result = holder.decrementAndGet(); forceNotify(); return result;