diff --git a/app/src/main/java/org/apache/fineract/ui/online/accounting/accounts/AccountsFragment.kt b/app/src/main/java/org/apache/fineract/ui/online/accounting/accounts/AccountsFragment.kt index 67c27d8a..096790e4 100644 --- a/app/src/main/java/org/apache/fineract/ui/online/accounting/accounts/AccountsFragment.kt +++ b/app/src/main/java/org/apache/fineract/ui/online/accounting/accounts/AccountsFragment.kt @@ -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 { diff --git a/app/src/main/java/org/apache/fineract/ui/online/accounting/ledgers/LedgerFragment.kt b/app/src/main/java/org/apache/fineract/ui/online/accounting/ledgers/LedgerFragment.kt index 75c50be5..c1b2b4ba 100644 --- a/app/src/main/java/org/apache/fineract/ui/online/accounting/ledgers/LedgerFragment.kt +++ b/app/src/main/java/org/apache/fineract/ui/online/accounting/ledgers/LedgerFragment.kt @@ -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 { diff --git a/app/src/main/java/org/apache/fineract/ui/online/customers/customerlist/CustomersFragment.java b/app/src/main/java/org/apache/fineract/ui/online/customers/customerlist/CustomersFragment.java index b4d80d1f..74201153 100644 --- a/app/src/main/java/org/apache/fineract/ui/online/customers/customerlist/CustomersFragment.java +++ b/app/src/main/java/org/apache/fineract/ui/online/customers/customerlist/CustomersFragment.java @@ -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 diff --git a/app/src/main/java/org/apache/fineract/ui/online/groups/grouplist/GroupListFragment.kt b/app/src/main/java/org/apache/fineract/ui/online/groups/grouplist/GroupListFragment.kt index 448554b6..c4b64845 100644 --- a/app/src/main/java/org/apache/fineract/ui/online/groups/grouplist/GroupListFragment.kt +++ b/app/src/main/java/org/apache/fineract/ui/online/groups/grouplist/GroupListFragment.kt @@ -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 { diff --git a/app/src/main/java/org/apache/fineract/ui/online/identification/identificationlist/IdentificationsFragment.java b/app/src/main/java/org/apache/fineract/ui/online/identification/identificationlist/IdentificationsFragment.java index 733b6883..2eb40c5b 100644 --- a/app/src/main/java/org/apache/fineract/ui/online/identification/identificationlist/IdentificationsFragment.java +++ b/app/src/main/java/org/apache/fineract/ui/online/identification/identificationlist/IdentificationsFragment.java @@ -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 diff --git a/app/src/main/java/org/apache/fineract/ui/online/loanaccounts/loanaccountlist/LoanAccountsFragment.java b/app/src/main/java/org/apache/fineract/ui/online/loanaccounts/loanaccountlist/LoanAccountsFragment.java index 7862fca1..9f98623f 100644 --- a/app/src/main/java/org/apache/fineract/ui/online/loanaccounts/loanaccountlist/LoanAccountsFragment.java +++ b/app/src/main/java/org/apache/fineract/ui/online/loanaccounts/loanaccountlist/LoanAccountsFragment.java @@ -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 diff --git a/app/src/main/java/org/apache/fineract/ui/online/teller/TellerFragment.kt b/app/src/main/java/org/apache/fineract/ui/online/teller/TellerFragment.kt index 9a889297..66371c9e 100644 --- a/app/src/main/java/org/apache/fineract/ui/online/teller/TellerFragment.kt +++ b/app/src/main/java/org/apache/fineract/ui/online/teller/TellerFragment.kt @@ -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 { diff --git a/app/src/main/java/org/apache/fineract/ui/product/ProductFragment.kt b/app/src/main/java/org/apache/fineract/ui/product/ProductFragment.kt index aa46396c..cc4d1664 100644 --- a/app/src/main/java/org/apache/fineract/ui/product/ProductFragment.kt +++ b/app/src/main/java/org/apache/fineract/ui/product/ProductFragment.kt @@ -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 {