]> git.ktnx.net Git - mobile-ledger.git/commitdiff
(commented) debug
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 5 Jan 2019 08:26:51 +0000 (08:26 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 5 Jan 2019 08:26:51 +0000 (08:26 +0000)
app/src/main/java/net/ktnx/mobileledger/model/ObservableAtomicInteger.java

index 79a2499c93bf9c87382a93c536cbf06e826d0985..218229face60ae910e9e2294c20331addfd555a3 100644 (file)
@@ -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;