From 7e6225d06aa3ef6209be571324f468017cbeab95 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 6 May 2021 22:42:41 +0300 Subject: [PATCH] debug loop only in debug builds --- .../mobileledger/ui/templates/TemplateDetailsViewModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), -- 2.39.5