Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Fix-254: SearchView error fixed in all fragments #124

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class AccountsFragment : FineractBaseFragment(), AccountContract.View, SwipeRefr
val searchView = menu?.findItem(R.id.account_search)?.actionView as? SearchView

searchView?.setSearchableInfo(searchManager?.getSearchableInfo(activity?.componentName))
searchView?.maxWidth = Int.MAX_VALUE

searchView?.setOnQueryTextListener(object : SearchView.OnQueryTextListener {
override fun onQueryTextSubmit(query: String): Boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class LedgerFragment : FineractBaseFragment(), LedgerContract.View,
val searchView = menu?.findItem(R.id.ledger_search)?.actionView as? SearchView

searchView?.setSearchableInfo(searchManager?.getSearchableInfo(activity?.componentName))
searchView?.maxWidth = Int.MAX_VALUE

searchView?.setOnQueryTextListener(object : SearchView.OnQueryTextListener {
override fun onQueryTextSubmit(query: String): Boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ private void setUpSearchInterface(Menu menu) {
SearchView searchView = (SearchView) menu.findItem(
R.id.menu_customer_search).getActionView();
searchView.setSearchableInfo(manager.getSearchableInfo(getActivity().getComponentName()));
searchView.setMaxWidth(Integer.MAX_VALUE);

searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class GroupListFragment : FineractBaseFragment(), OnItemClickListener {
val searchView = menu.findItem(R.id.group_search).actionView as SearchView

searchView.setSearchableInfo(searchManager.getSearchableInfo(activity?.componentName))
searchView.maxWidth = Int.MAX_VALUE

searchView.setOnQueryTextListener(object : SearchView.OnQueryTextListener {
override fun onQueryTextSubmit(query: String): Boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ private void setUpSearchInterface(Menu menu) {
final SearchView searchView = (SearchView) menu.findItem(
R.id.identification_search).getActionView();
searchView.setSearchableInfo(manager.getSearchableInfo(getActivity().getComponentName()));
searchView.setMaxWidth(Integer.MAX_VALUE);

searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ private void setUpSearchInterface(Menu menu) {
.getActionView();
searchView.setSearchableInfo(searchManager.getSearchableInfo(getActivity()
.getComponentName()));
searchView.setMaxWidth(Integer.MAX_VALUE);

searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class TellerFragment : FineractBaseFragment(), TellerContract.View, SwipeRefresh
val searchView = menu?.findItem(R.id.teller_search)?.actionView as? SearchView

searchView?.setSearchableInfo(searchManager?.getSearchableInfo(activity?.componentName))
searchView?.maxWidth = Int.MAX_VALUE

searchView?.setOnQueryTextListener(object : SearchView.OnQueryTextListener {
override fun onQueryTextSubmit(query: String): Boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class ProductFragment : FineractBaseFragment(), ProductContract.View,
val searchView = menu?.findItem(R.id.product_search)?.actionView as? SearchView

searchView?.setSearchableInfo(searchManager?.getSearchableInfo(activity?.componentName))
searchView?.maxWidth = Int.MAX_VALUE

searchView?.setOnQueryTextListener(object : SearchView.OnQueryTextListener {
override fun onQueryTextSubmit(query: String): Boolean {
Expand Down