diff --git a/AnkiDroid/src/main/java/com/ichi2/libanki/ChangeManager.kt b/AnkiDroid/src/main/java/com/ichi2/libanki/ChangeManager.kt index d793487aa62d..cf827a716af0 100644 --- a/AnkiDroid/src/main/java/com/ichi2/libanki/ChangeManager.kt +++ b/AnkiDroid/src/main/java/com/ichi2/libanki/ChangeManager.kt @@ -85,9 +85,9 @@ object ChangeManager { } } - @VisibleForTesting + @VisibleForTesting(otherwise = VisibleForTesting.NONE) fun clearSubscribers() { - Timber.d("clearing %d subscribers", subscribers.size) + subscribers.size.ifNotZero { size -> Timber.d("clearing %d subscribers", size) } subscribers.clear() }