]> git.ktnx.net Git - mobile-ledger.git/commitdiff
silence some debug
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 11 Jan 2019 19:48:49 +0000 (19:48 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 11 Jan 2019 19:48:49 +0000 (19:48 +0000)
app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileListActivity.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java

index 5b43b8ed3ac2b65598cfbc93e252e1101bc70f94..07fce288bdcc6d51ec09ba92b640150ea9d273d0 100644 (file)
@@ -141,7 +141,7 @@ public class ProfileListActivity extends AppCompatActivity {
         recyclerView.setOnFlingListener(new RecyclerView.OnFlingListener() {
             @Override
             public boolean onFling(int dX, int dY) {
-                Log.d("tmp", String.format("fling %d %d", dX, dY));
+//                Log.d("tmp", String.format("fling %d %d", dX, dY));
                 if (dY > 0) fab.hide();
                 if (dY < 0) fab.show();
                 return false;
index b824f2c7a2859e5fab44a39c5d662d68191d3dfb..96933eeb84759cc43470eccef9a352510c30c96d 100644 (file)
@@ -24,7 +24,6 @@ import android.os.AsyncTask;
 import android.support.annotation.NonNull;
 import android.support.v7.widget.AppCompatTextView;
 import android.support.v7.widget.RecyclerView;
-import android.util.Log;
 import android.view.Gravity;
 import android.view.LayoutInflater;
 import android.view.View;
@@ -50,8 +49,8 @@ public class TransactionListAdapter extends RecyclerView.Adapter<TransactionRowH
         // a bit longer
         if (tr == null) return;
 
-        Log.d("transactions", String.format("Filling position %d with %d accounts", position,
-                tr.getAccounts().size()));
+//        Log.d("transactions", String.format("Filling position %d with %d accounts", position,
+//                tr.getAccounts().size()));
 
         TransactionLoader loader = new TransactionLoader();
         loader.execute(new TransactionLoaderParams(tr, holder, position, boldAccountName));
@@ -60,7 +59,7 @@ public class TransactionListAdapter extends RecyclerView.Adapter<TransactionRowH
     @NonNull
     @Override
     public TransactionRowHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
-        Log.d("perf", "onCreateViewHolder called");
+//        Log.d("perf", "onCreateViewHolder called");
         View row = LayoutInflater.from(parent.getContext())
                 .inflate(R.layout.transaction_list_row, parent, false);
         return new TransactionRowHolder(row);
@@ -92,8 +91,7 @@ public class TransactionListAdapter extends RecyclerView.Adapter<TransactionRowH
 
             int rowIndex = 0;
             for (LedgerTransactionAccount acc : tr.getAccounts()) {
-                Log.d("tmp", String.format("publishing tr %d acc %s %1.2f", tr.getId(),
-                        acc.getAccountName(), acc.getAmount()));
+//                Log.d(c.getAccountName(), acc.getAmount()));
                 publishProgress(new TransactionLoaderStep(p[0].holder, acc, rowIndex++,
                         p[0].boldAccountName));
             }
@@ -159,8 +157,8 @@ public class TransactionListAdapter extends RecyclerView.Adapter<TransactionRowH
                     accName.setText(acc.getAccountName());
                     accAmount.setText(acc.toString());
 
-                    Log.d("tmp", String.format("showing acc row %d: %s %1.2f", rowIndex,
-                            acc.getAccountName(), acc.getAmount()));
+//                    Log.d("tmp", String.format("showing acc row %d: %s %1.2f", rowIndex,
+//                            acc.getAccountName(), acc.getAmount()));
 
                     String boldAccountName = step.getBoldAccountName();
                     if ((boldAccountName != null) && boldAccountName.equals(acc.getAccountName())) {
@@ -184,8 +182,8 @@ public class TransactionListAdapter extends RecyclerView.Adapter<TransactionRowH
                                 holder.tableAccounts.getChildCount() - accCount);
                     }
 
-                    Log.d("transactions",
-                            String.format("Position %d fill done", step.getPosition()));
+//                    Log.d("transactions",
+//                            String.format("Position %d fill done", step.getPosition()));
             }
         }
     }
index dcad525bdd19b37025e4757df3bbb5ccd092efb0..9ec46e79f9fbbc1cca26590ebeb61e9a5812f1b7 100644 (file)
@@ -162,7 +162,7 @@ public class TransactionListFragment extends MobileLedgerListFragment {
         accNameFilter.setOnItemClickListener(new AdapterView.OnItemClickListener() {
             @Override
             public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
-                Log.d("tmp", "direct onItemClick");
+//                Log.d("tmp", "direct onItemClick");
                 TransactionListViewModel.scheduleTransactionListReload(mActivity);
                 MatrixCursor mc = (MatrixCursor) parent.getItemAtPosition(position);
                 modelAdapter.setBoldAccountName(mc.getString(1));