]> git.ktnx.net Git - mobile-ledger.git/commitdiff
debug--
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 15 Apr 2021 20:09:34 +0000 (20:09 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 15 Apr 2021 20:09:34 +0000 (20:09 +0000)
app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryAdapter.java

index 488af1f42ca13018af0df78735121c7765e83d40..350c470db73f254374392245774bf64a2bcadac3 100644 (file)
@@ -149,7 +149,7 @@ public class AccountSummaryAdapter extends RecyclerView.Adapter<AccountSummaryAd
                 throw new IllegalStateException("Unexpected value: " + viewType);
         }
 
-        Logger.debug("acc-ui", "Creating " + result);
+//        Logger.debug("acc-ui", "Creating " + result);
         return result;
     }
     @Override
@@ -214,8 +214,8 @@ public class AccountSummaryAdapter extends RecyclerView.Adapter<AccountSummaryAd
         @Override
         public void bind(AccountListItem item, @Nullable List<Object> payloads) {
             Resources r = itemView.getResources();
-            Logger.debug("acc", itemView.getContext()
-                                        .toString());
+//            Logger.debug("acc", itemView.getContext()
+//                                        .toString());
             ((AccountListItem.Header) item).getText()
                                            .observe((LifecycleOwner) itemView.getContext(),
                                                    b.lastUpdateText::setText);
@@ -312,8 +312,8 @@ public class AccountSummaryAdapter extends RecyclerView.Adapter<AccountSummaryAd
                         changes.add((Change) p);
                 }
             }
-            debug("accounts",
-                    String.format(Locale.US, "Binding to '%s' to %s", acc.getName(), this));
+//            debug("accounts",
+//                    String.format(Locale.US, "Binding '%s' to %s", acc.getName(), this));
 
             Resources rm = b.getRoot()
                             .getContext()
@@ -335,9 +335,9 @@ public class AccountSummaryAdapter extends RecyclerView.Adapter<AccountSummaryAd
                 if (changes.has(Change.EXPANDED)) {
                     int wantedRotation = acc.isExpanded() ? 0 : 180;
                     if (b.accountExpanderContainer.getRotation() != wantedRotation) {
-                        Logger.debug("acc-ui",
-                                String.format(Locale.ROOT, "Rotating %s to %d", acc.getName(),
-                                        wantedRotation));
+//                        Logger.debug("acc-ui",
+//                                String.format(Locale.ROOT, "Rotating %s to %d", acc.getName(),
+//                                        wantedRotation));
                         b.accountExpanderContainer.animate()
                                                   .rotation(wantedRotation);
                     }