diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2016-06-15 12:51:30 -0700 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2016-06-15 12:51:30 -0700 |
commit | 7d2fc8120e549eaa9542b0985aab67d172cbd682 (patch) | |
tree | 92335d428aa9379039c061bae93188c0b24135a8 /src/com/android/launcher3/DeviceProfile.java | |
parent | b25b2c41c2fa277e16d708ad827e283efcb86452 (diff) | |
download | android_packages_apps_Trebuchet-7d2fc8120e549eaa9542b0985aab67d172cbd682.tar.gz android_packages_apps_Trebuchet-7d2fc8120e549eaa9542b0985aab67d172cbd682.tar.bz2 android_packages_apps_Trebuchet-7d2fc8120e549eaa9542b0985aab67d172cbd682.zip |
Add caret shaped all app pull up handle to page indicator.
b/28917826
> PageIndicator is also added in landscape
> Touch delegate allows the active touch area to be 36dp
Change-Id: If00f45fc88a13cd5a6759d771313439eb58561e3
Diffstat (limited to 'src/com/android/launcher3/DeviceProfile.java')
-rw-r--r-- | src/com/android/launcher3/DeviceProfile.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java index 4a550ed9a..86f22d5ca 100644 --- a/src/com/android/launcher3/DeviceProfile.java +++ b/src/com/android/launcher3/DeviceProfile.java @@ -457,17 +457,14 @@ public class DeviceProfile { // Layout the page indicators View pageIndicator = launcher.findViewById(R.id.page_indicator); if (pageIndicator != null) { - if (hasVerticalBarLayout) { - // Hide the page indicators when we have vertical search/hotseat - pageIndicator.setVisibility(View.GONE); - } else { + lp = (FrameLayout.LayoutParams) pageIndicator.getLayoutParams(); + if (!hasVerticalBarLayout) { // Put the page indicators above the hotseat - lp = (FrameLayout.LayoutParams) pageIndicator.getLayoutParams(); lp.gravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; lp.width = LayoutParams.WRAP_CONTENT; lp.bottomMargin = hotseatBarHeightPx; - pageIndicator.setLayoutParams(lp); } + pageIndicator.setLayoutParams(lp); } // Layout the Overview Mode |