drop unused instantiation of TransactionListViewModel
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 29 Jan 2019 19:57:10 +0000 (21:57 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 29 Jan 2019 19:57:10 +0000 (21:57 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/MobileLedgerListFragment.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java

index fd21833b0e51caf106f48d5a3fabd86245dced4e..77d3f897158eb94acf92e7ad0ef820694463c625 100644 (file)
@@ -17,7 +17,6 @@
 
 package net.ktnx.mobileledger.ui;
 
-import android.arch.lifecycle.ViewModel;
 import android.support.v4.app.Fragment;
 import android.support.v4.widget.SwipeRefreshLayout;
 import android.support.v7.widget.RecyclerView;
@@ -26,7 +25,6 @@ import net.ktnx.mobileledger.ui.activity.MainActivity;
 import net.ktnx.mobileledger.ui.transaction_list.TransactionListAdapter;
 
 public class MobileLedgerListFragment extends Fragment {
-    public ViewModel model;
     protected MainActivity mActivity;
     public SwipeRefreshLayout swiper;
     protected RecyclerView root;
index 1f6fbda69e5e2d83d23ae77fe02e2d73898bf2c1..eb17aed72ffcb1df908b68fb723f4596406ec303 100644 (file)
@@ -17,7 +17,6 @@
 
 package net.ktnx.mobileledger.ui.transaction_list;
 
-import android.arch.lifecycle.ViewModelProviders;
 import android.content.Context;
 import android.database.MatrixCursor;
 import android.os.Bundle;
@@ -141,7 +140,6 @@ public class TransactionListFragment extends MobileLedgerListFragment {
         root = mActivity.findViewById(R.id.transaction_root);
         if (root == null)
             throw new RuntimeException("Can't get hold on the transaction value view");
-        model = ViewModelProviders.of(this).get(TransactionListViewModel.class);
         modelAdapter = new TransactionListAdapter();
 
         modelAdapter.setBoldAccountName(mShowOnlyAccountName);