From 8e78389769e81850284ae980d379782e5a09cb11 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Fri, 23 Oct 2015 17:14:33 +0200 Subject: [PATCH] Bug 1203137 - Tabs tray (Grid): Explicitly disable fading edge. r=margaret On newer devices there's no fading edge but on Gingerbread you can see an ugly, misplaced fading edge effect. --HG-- extra : commitid : 16zS0rofxHM extra : rebase_source : f3bed7e22971204cc8f1697e8adc28fb4ff54635 extra : amend_source : 0d418d43d827bc541f0ce50fc63e455587540c56 --- mobile/android/base/tabs/TabsGridLayout.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mobile/android/base/tabs/TabsGridLayout.java b/mobile/android/base/tabs/TabsGridLayout.java index da6f81b86a0a..50bb070d1dff 100644 --- a/mobile/android/base/tabs/TabsGridLayout.java +++ b/mobile/android/base/tabs/TabsGridLayout.java @@ -87,6 +87,8 @@ class TabsGridLayout extends GridView // so lets set it manually in code for the moment as it's needed for the padding animation setClipToPadding(false); + setVerticalFadingEdgeEnabled(false); + final Resources resources = getResources(); columnWidth = resources.getDimensionPixelSize(R.dimen.tab_panel_column_width);