From: Damyan Ivanov Date: Tue, 29 Jan 2019 19:57:10 +0000 (+0200) Subject: drop unused instantiation of TransactionListViewModel X-Git-Tag: v0.4.1~1 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=36ee604bd51a503c704528abb8e33c20cb8989c7;p=mobile-ledger.git drop unused instantiation of TransactionListViewModel --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/MobileLedgerListFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/MobileLedgerListFragment.java index fd21833b..77d3f897 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/MobileLedgerListFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/MobileLedgerListFragment.java @@ -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; diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java index 1f6fbda6..eb17aed7 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java @@ -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);