diff options
author | Peter Schiller <peterschiller@google.com> | 2016-07-19 12:11:05 -0700 |
---|---|---|
committer | Peter Schiller <peterschiller@google.com> | 2016-07-19 12:21:10 -0700 |
commit | a92447a7fdcdd8392628bb15dad9730428b71160 (patch) | |
tree | 08f45e4349f18ab148f703386c30ce51b97f0b58 /src/com/android/launcher3/allapps/AllAppsGridAdapter.java | |
parent | 2f3b0b7e3b634d7e17f457c961e5a7acd9bf71ee (diff) | |
download | android_packages_apps_Trebuchet-a92447a7fdcdd8392628bb15dad9730428b71160.tar.gz android_packages_apps_Trebuchet-a92447a7fdcdd8392628bb15dad9730428b71160.tar.bz2 android_packages_apps_Trebuchet-a92447a7fdcdd8392628bb15dad9730428b71160.zip |
Centered all apps search text
Change-Id: I21aaec56cd2202cea284880a28d9513435877368
Diffstat (limited to 'src/com/android/launcher3/allapps/AllAppsGridAdapter.java')
-rw-r--r-- | src/com/android/launcher3/allapps/AllAppsGridAdapter.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsGridAdapter.java b/src/com/android/launcher3/allapps/AllAppsGridAdapter.java index 0f0c333f4..39fe0f8a1 100644 --- a/src/com/android/launcher3/allapps/AllAppsGridAdapter.java +++ b/src/com/android/launcher3/allapps/AllAppsGridAdapter.java @@ -63,7 +63,7 @@ public class AllAppsGridAdapter extends RecyclerView.Adapter<AllAppsGridAdapter. public static final int VIEW_TYPE_PREDICTION_ICON = 1 << 2; // The message shown when there are no filtered results public static final int VIEW_TYPE_EMPTY_SEARCH = 1 << 3; - // A divider that separates the apps list and the search market button + // The message to continue to a market search when there are no filtered results public static final int VIEW_TYPE_SEARCH_MARKET = 1 << 4; // We use various dividers for various purposes. They share enough attributes to reuse layouts, @@ -515,8 +515,6 @@ public class AllAppsGridAdapter extends RecyclerView.Adapter<AllAppsGridAdapter. TextView searchView = (TextView) holder.mContent; if (mMarketSearchIntent != null) { searchView.setVisibility(View.VISIBLE); - searchView.setGravity(mApps.hasNoFilteredResults() ? Gravity.CENTER : - Gravity.START | Gravity.CENTER_VERTICAL); } else { searchView.setVisibility(View.GONE); } |