From b95e098e5f1158ceb25a073cffd3068633e3fd05 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 17 May 2020 20:45:48 +0300 Subject: [PATCH] fix transaction account filter selection broken with 64d69a2f7f729949b9236489ab7c4ce9f9aaea86 (v0.12.0) --- .../ui/transaction_list/TransactionListFragment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }); -- 2.39.5