From 67f4283cb982da770748011080e77fa84c1c3e8d Mon Sep 17 00:00:00 2001 From: M M Arif Date: Tue, 29 Oct 2019 11:28:59 +0500 Subject: [PATCH] Use search and magnify icon --- .../java/org/mian/gitnex/fragments/ClosedIssuesFragment.java | 2 +- .../main/java/org/mian/gitnex/fragments/IssuesFragment.java | 2 +- .../java/org/mian/gitnex/fragments/MembersByOrgFragment.java | 2 +- .../java/org/mian/gitnex/fragments/MilestonesFragment.java | 2 +- .../org/mian/gitnex/fragments/MyRepositoriesFragment.java | 2 +- .../java/org/mian/gitnex/fragments/OrganizationsFragment.java | 2 +- .../org/mian/gitnex/fragments/RepositoriesByOrgFragment.java | 2 +- .../java/org/mian/gitnex/fragments/RepositoriesFragment.java | 2 +- .../mian/gitnex/fragments/StarredRepositoriesFragment.java | 2 +- .../java/org/mian/gitnex/fragments/TeamsByOrgFragment.java | 2 +- app/src/main/res/menu/search_menu.xml | 4 ++-- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/org/mian/gitnex/fragments/ClosedIssuesFragment.java b/app/src/main/java/org/mian/gitnex/fragments/ClosedIssuesFragment.java index 127d37c2..b63686af 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/ClosedIssuesFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/ClosedIssuesFragment.java @@ -263,7 +263,7 @@ public class ClosedIssuesFragment extends Fragment { MenuItem searchItem = menu.findItem(R.id.action_search); androidx.appcompat.widget.SearchView searchView = (androidx.appcompat.widget.SearchView) searchItem.getActionView(); searchView.setImeOptions(EditorInfo.IME_ACTION_DONE); - searchView.setQueryHint(getContext().getString(R.string.strFilter)); + //searchView.setQueryHint(getContext().getString(R.string.strFilter)); if(!connToInternet) { return; diff --git a/app/src/main/java/org/mian/gitnex/fragments/IssuesFragment.java b/app/src/main/java/org/mian/gitnex/fragments/IssuesFragment.java index 4d25c417..bf46bf79 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/IssuesFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/IssuesFragment.java @@ -262,7 +262,7 @@ public class IssuesFragment extends Fragment { MenuItem searchItem = menu.findItem(R.id.action_search); androidx.appcompat.widget.SearchView searchView = (androidx.appcompat.widget.SearchView) searchItem.getActionView(); searchView.setImeOptions(EditorInfo.IME_ACTION_DONE); - searchView.setQueryHint(getContext().getString(R.string.strFilter)); + //searchView.setQueryHint(getContext().getString(R.string.strFilter)); if(!connToInternet) { return; diff --git a/app/src/main/java/org/mian/gitnex/fragments/MembersByOrgFragment.java b/app/src/main/java/org/mian/gitnex/fragments/MembersByOrgFragment.java index e2502939..aaed7cc8 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/MembersByOrgFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/MembersByOrgFragment.java @@ -112,7 +112,7 @@ public class MembersByOrgFragment extends Fragment { MenuItem searchItem = menu.findItem(R.id.action_search); androidx.appcompat.widget.SearchView searchView = (androidx.appcompat.widget.SearchView) searchItem.getActionView(); searchView.setImeOptions(EditorInfo.IME_ACTION_DONE); - searchView.setQueryHint(getContext().getString(R.string.strFilter)); + //searchView.setQueryHint(getContext().getString(R.string.strFilter)); if(!connToInternet) { return; diff --git a/app/src/main/java/org/mian/gitnex/fragments/MilestonesFragment.java b/app/src/main/java/org/mian/gitnex/fragments/MilestonesFragment.java index 16893160..13daeb27 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/MilestonesFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/MilestonesFragment.java @@ -183,7 +183,7 @@ public class MilestonesFragment extends Fragment { MenuItem searchItem = menu.findItem(R.id.action_search); androidx.appcompat.widget.SearchView searchView = (androidx.appcompat.widget.SearchView) searchItem.getActionView(); searchView.setImeOptions(EditorInfo.IME_ACTION_DONE); - searchView.setQueryHint(getContext().getString(R.string.strFilter)); + //searchView.setQueryHint(getContext().getString(R.string.strFilter)); if(!connToInternet) { return; diff --git a/app/src/main/java/org/mian/gitnex/fragments/MyRepositoriesFragment.java b/app/src/main/java/org/mian/gitnex/fragments/MyRepositoriesFragment.java index fda09c8f..2fdca2c3 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/MyRepositoriesFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/MyRepositoriesFragment.java @@ -205,7 +205,7 @@ public class MyRepositoriesFragment extends Fragment { MenuItem searchItem = menu.findItem(R.id.action_search); androidx.appcompat.widget.SearchView searchView = (androidx.appcompat.widget.SearchView) searchItem.getActionView(); searchView.setImeOptions(EditorInfo.IME_ACTION_DONE); - searchView.setQueryHint(getContext().getString(R.string.strFilter)); + //searchView.setQueryHint(getContext().getString(R.string.strFilter)); if(!connToInternet) { return; diff --git a/app/src/main/java/org/mian/gitnex/fragments/OrganizationsFragment.java b/app/src/main/java/org/mian/gitnex/fragments/OrganizationsFragment.java index 7fcc301b..c4186077 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/OrganizationsFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/OrganizationsFragment.java @@ -173,7 +173,7 @@ public class OrganizationsFragment extends Fragment { MenuItem searchItem = menu.findItem(R.id.action_search); androidx.appcompat.widget.SearchView searchView = (androidx.appcompat.widget.SearchView) searchItem.getActionView(); searchView.setImeOptions(EditorInfo.IME_ACTION_DONE); - searchView.setQueryHint(getContext().getString(R.string.strFilter)); + //searchView.setQueryHint(getContext().getString(R.string.strFilter)); if(!connToInternet) { return; diff --git a/app/src/main/java/org/mian/gitnex/fragments/RepositoriesByOrgFragment.java b/app/src/main/java/org/mian/gitnex/fragments/RepositoriesByOrgFragment.java index c72984eb..a812d574 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/RepositoriesByOrgFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/RepositoriesByOrgFragment.java @@ -155,7 +155,7 @@ public class RepositoriesByOrgFragment extends Fragment { MenuItem searchItem = menu.findItem(R.id.action_search); androidx.appcompat.widget.SearchView searchView = (androidx.appcompat.widget.SearchView) searchItem.getActionView(); searchView.setImeOptions(EditorInfo.IME_ACTION_DONE); - searchView.setQueryHint(getContext().getString(R.string.strFilter)); + //searchView.setQueryHint(getContext().getString(R.string.strFilter)); if(!connToInternet) { return; diff --git a/app/src/main/java/org/mian/gitnex/fragments/RepositoriesFragment.java b/app/src/main/java/org/mian/gitnex/fragments/RepositoriesFragment.java index 82fd4bba..440a68e3 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/RepositoriesFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/RepositoriesFragment.java @@ -176,7 +176,7 @@ public class RepositoriesFragment extends Fragment { MenuItem searchItem = menu.findItem(R.id.action_search); androidx.appcompat.widget.SearchView searchView = (androidx.appcompat.widget.SearchView) searchItem.getActionView(); searchView.setImeOptions(EditorInfo.IME_ACTION_DONE); - searchView.setQueryHint(getContext().getString(R.string.strFilter)); + //searchView.setQueryHint(getContext().getString(R.string.strFilter)); if(!connToInternet) { return; diff --git a/app/src/main/java/org/mian/gitnex/fragments/StarredRepositoriesFragment.java b/app/src/main/java/org/mian/gitnex/fragments/StarredRepositoriesFragment.java index 911efe85..34b2634b 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/StarredRepositoriesFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/StarredRepositoriesFragment.java @@ -198,7 +198,7 @@ public class StarredRepositoriesFragment extends Fragment { MenuItem searchItem = menu.findItem(R.id.action_search); androidx.appcompat.widget.SearchView searchView = (androidx.appcompat.widget.SearchView) searchItem.getActionView(); searchView.setImeOptions(EditorInfo.IME_ACTION_DONE); - searchView.setQueryHint(getContext().getString(R.string.strFilter)); + //searchView.setQueryHint(getContext().getString(R.string.strFilter)); if(!connToInternet) { return; diff --git a/app/src/main/java/org/mian/gitnex/fragments/TeamsByOrgFragment.java b/app/src/main/java/org/mian/gitnex/fragments/TeamsByOrgFragment.java index 718fd4ce..f3f5ae7d 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/TeamsByOrgFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/TeamsByOrgFragment.java @@ -156,7 +156,7 @@ public class TeamsByOrgFragment extends Fragment { MenuItem searchItem = menu.findItem(R.id.action_search); androidx.appcompat.widget.SearchView searchView = (androidx.appcompat.widget.SearchView) searchItem.getActionView(); searchView.setImeOptions(EditorInfo.IME_ACTION_DONE); - searchView.setQueryHint(getContext().getString(R.string.strFilter)); + //searchView.setQueryHint(getContext().getString(R.string.strFilter)); if(!connToInternet) { return; diff --git a/app/src/main/res/menu/search_menu.xml b/app/src/main/res/menu/search_menu.xml index cc8cf09a..442ad8de 100644 --- a/app/src/main/res/menu/search_menu.xml +++ b/app/src/main/res/menu/search_menu.xml @@ -5,8 +5,8 @@