]> git.ktnx.net Git - mobile-ledger.git/commitdiff
debug loop only in debug builds
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 6 May 2021 19:42:41 +0000 (22:42 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 6 May 2021 19:42:41 +0000 (22:42 +0300)
app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsViewModel.java

index 7198a03a663a70a35b213e61ad1e563d5925f923..8836f10d6ebc735d5f02af3cc8bbf74295e984c9 100644 (file)
@@ -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(),