From d3a8b658a1fc185202ab739eaa66080813729170 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 5 Jan 2019 08:26:51 +0000 Subject: [PATCH] (commented) debug --- .../net/ktnx/mobileledger/model/ObservableAtomicInteger.java | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5