From: Damyan Ivanov Date: Sun, 17 May 2020 17:45:48 +0000 (+0300) Subject: fix transaction account filter selection X-Git-Tag: v0.14.0~84 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=b95e098e5f1158ceb25a073cffd3068633e3fd05;p=mobile-ledger.git fix transaction account filter selection broken with 64d69a2f7f729949b9236489ab7c4ce9f9aaea86 (v0.12.0) --- 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 edd37825..3625ea40 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 @@ -18,7 +18,7 @@ package net.ktnx.mobileledger.ui.transaction_list; import android.content.Context; -import android.database.MatrixCursor; +import android.database.Cursor; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; @@ -125,8 +125,8 @@ public class TransactionListFragment extends MobileLedgerListFragment { MLDB.hookAutocompletionAdapter(mActivity, accNameFilter, "accounts", "name"); accNameFilter.setOnItemClickListener((parent, view, position, id) -> { // debug("tmp", "direct onItemClick"); - MatrixCursor mc = (MatrixCursor) parent.getItemAtPosition(position); - Data.accountFilter.setValue(mc.getString(1)); + Cursor c = (Cursor) parent.getItemAtPosition(position); + Data.accountFilter.setValue(c.getString(1)); Globals.hideSoftKeyboard(mActivity); });