gecko-dev/mobile/android/base/resources
Tom Klein ce402fbf10 Bug 1340929 - Don't scroll to a new tab opened from a link. r=sebastian
We used to scroll in addTab to make sure a new tab created by a close-tab-undo
at the start or the end of the list was made visible instead of staying where it
was created off the edge.  We're now taking care of that in selectTab (where it
should have stayed in the first place), where the select in that case occurs
between the time when the new tab is added to the adapter and when the layout
gets updated.  In the case where the new tab is at the start, that means the
check 'position < layoutManager.findFirstCompletelyVisibleItemPosition()' in
selectTab reads '0 < 0', which fails (which is why we need the new check for
'position == 0'), but the check 'position >
layoutManager.findLastCompletelyVisibleItemPosition()' for a tab added at the
end reads 'new_lengh -1 > old_length - 1' which already passes, so we don't need
a special case for undo-tab-close adds at the end in selectTab.  Tabs added at
the end by a normal "create new tab" still scroll for the same reason.

Robotium was confused by the duplicate 'add_tab' ids from the tab strip and the
tabs panel, so I renamed one of them.  Also note that the 'getTabId' added to
TabStripItemView for testing already exists on TabLayoutItemView, but the two
classes don't share a common base.

MozReview-Commit-ID: BzG2r8BSs90

--HG--
rename : mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/testTabStripPrivacyMode.java => mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/testTabStrip.java
extra : rebase_source : b2859647d9e26cdca24e1b03065d3c62e20f7b1b
extra : source : 119ee2655404e277c13d0e436fba1cad1272797e
2017-02-22 21:54:11 -06:00
..
anim
color
drawable Bug 1323105 - Add VectorDrawable pin icon r=sebastian 2017-02-02 09:27:35 -08:00
drawable-hdpi Bug 1323105 - Post: remove unused raster pin icon r=sebastian 2017-02-01 14:44:05 -08:00
drawable-hdpi-v11
drawable-large-hdpi-v11
drawable-large-v11
drawable-large-xhdpi-v11
drawable-large-xxhdpi-v11
drawable-ldrtl-hdpi Bug 1322119 - Put mirrored 9patch drawable into ldrtl resource folder, r=sebastian 2016-12-16 19:57:19 +08:00
drawable-ldrtl-large-hdpi Bug 1323763 - Revert setAutomirrored solution and provide drawable in ldrtl folder, r=ahunt 2016-12-16 18:21:58 +08:00
drawable-ldrtl-large-xhdpi Bug 1323763 - Revert setAutomirrored solution and provide drawable in ldrtl folder, r=ahunt 2016-12-16 18:21:58 +08:00
drawable-ldrtl-large-xxhdpi Bug 1323763 - Revert setAutomirrored solution and provide drawable in ldrtl folder, r=ahunt 2016-12-16 18:21:58 +08:00
drawable-ldrtl-xhdpi Bug 1322119 - Put mirrored 9patch drawable into ldrtl resource folder, r=sebastian 2016-12-16 19:57:19 +08:00
drawable-ldrtl-xxhdpi Bug 1323763 - Revert setAutomirrored solution and provide drawable in ldrtl folder, r=ahunt 2016-12-16 18:21:58 +08:00
drawable-nodpi Bug 1314328 - Part 2: convert remaining firstrun pngs to webp r=nechen 2016-12-07 12:42:06 -08:00
drawable-v12
drawable-v21
drawable-xhdpi Bug 1323105 - Post: remove unused raster pin icon r=sebastian 2017-02-01 14:44:05 -08:00
drawable-xhdpi-v11
drawable-xlarge-hdpi-v11
drawable-xlarge-xhdpi-v11
drawable-xlarge-xxhdpi-v11
drawable-xxhdpi Bug 1319254 - Add welcome panel to Activity Stream r=sebastian 2016-12-12 15:52:13 -08:00
drawable-xxhdpi-v11
drawable-xxxhdpi
layout Bug 1340929 - Don't scroll to a new tab opened from a link. r=sebastian 2017-02-22 21:54:11 -06:00
layout-large-v11 Bug 1319302 - RTL support for Firefox for Android, r=sebastian 2016-11-11 16:10:21 +08:00
layout-xlarge-v11
menu Bug 1330986 - Fix filename typo r=sebastian 2017-02-02 10:07:04 -08:00
menu-large
menu-v11
menu-xlarge
raw
values Bug 1342968 - Remove unused TabsLayout xml style attributes. r=sebastian 2017-02-27 10:20:36 -06:00
values-land Bug 1342968 - Remove unused TabsLayout xml style attributes. r=sebastian 2017-02-27 10:20:36 -06:00
values-large Bug 1342968 - Remove unused TabsLayout xml style attributes. r=sebastian 2017-02-27 10:20:36 -06:00
values-large-land-v11 Bug 1342968 - Remove unused TabsLayout xml style attributes. r=sebastian 2017-02-27 10:20:36 -06:00
values-large-v16
values-sw240dp
values-sw360dp
values-sw400dp
values-v11 Bug 1233415 - Make action bar actions full action bar height. r=sebastian 2017-01-07 02:33:14 -06:00
values-v13 Bug 1268414 - Remove UnusedResourcesUtil.TEMPORARY_UNUSED_WHILE_MIGRATING_GRADLE and related resources. r? 2016-11-17 15:45:31 +08:00
values-v14
values-v16
values-v19
values-v21
values-w400dp
values-xlarge-land-v11
values-xlarge-v11 Bug 1268414 - Remove UnusedResourcesUtil.TEMPORARY_UNUSED_WHILE_MIGRATING_GRADLE and related resources. r? 2016-11-17 15:45:31 +08:00
xml Bug 1323952 - Preferences: Set default 'compact tabs' value based on experiment. r=ahunt,nechen 2016-12-20 19:28:08 +01:00
xml-v11