From: Damyan Ivanov Date: Thu, 6 May 2021 19:42:41 +0000 (+0300) Subject: debug loop only in debug builds X-Git-Tag: v0.19.0~23 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=7e6225d06aa3ef6209be571324f468017cbeab95;p=mobile-ledger.git debug loop only in debug builds --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsViewModel.java b/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsViewModel.java index 7198a03a..8836f10d 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsViewModel.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsViewModel.java @@ -75,7 +75,7 @@ public class TemplateDetailsViewModel extends ViewModel { srcList = Collections.unmodifiableList(srcList); - { + if (BuildConfig.DEBUG) { Logger.debug(TAG, "Considering old list"); for (TemplateDetailsItem item : srcList) Logger.debug(TAG, String.format(Locale.US, " id %d pos %d", item.getId(),