Commit Graph
2909 Commits
Author SHA1 Message Date
Jan Henning 5e55c46d15 Bug 1396076 - Part 3 - Switch to a LayoutChangeListener for setting up the delegates. r=jwu
When the device is rotated between portrait and landscape mode (or vice versa), the View's final size is not yet available during the first OnPreDrawListener call for some of the TabsLayoutItemViews. It would be possible to skip the listener removal, so this is no longer used as a one-shot listener, however onPreDraw is frequently called even when the View's dimensions haven't changed.
Therefore, we switch this to an OnLayoutChangeListener, which is more appropriate for what we need.

MozReview-Commit-ID: 6JAzXdEBxbL
2017-09-07 22:26:57 +02:00
Jan Henning ae90162a12 Bug 1396076 - Part 2 - Use the HoverDelegate for TabsLayoutItemView's close button. r=jwu
MozReview-Commit-ID: FU4KVwVgtWy
2017-09-01 20:12:52 +02:00
Jan Henning 5b9f1bfc77 Bug 1396076 - Part 1 - Add a HoverDelegate class. r=jwu
This is more or less a straight copy of our TouchDelegateWithReset class adapted to using HoverEvents instead of TouchEvents.

MozReview-Commit-ID: KtQvf1is5xK
2017-09-01 19:49:23 +02:00
Sebastian Kaspari 2c39787e16 Bug 1385988 - HighlightsDividerItemDecoration: Use adapter position and not current position in parent view. r=mcomella
MozReview-Commit-ID: Ih6USplyBTb
2017-09-08 17:08:05 +02:00
Nevin Chen 57f6a6fa90 Bug 1365868 - Add basic context menu: Open in Firefox. r=maliu
MozReview-Commit-ID: BxjFKKNcCiQ
2017-09-07 15:52:16 +08:00
Jing-wei Wu 4be7a26af3 Bug 1396324 - [robocop] Configure bookmarks panel as default panel before loading URLs. r=JanH
We found sometimes Robocop operates wrong UI components when it deals with a complex layout.
Since default panel shows Activity Stream which contains complex UI components, we configure
bookmarks panel as default panel to keep the layout as simple as possible.

MozReview-Commit-ID: 12xhVOdlIRK
2017-09-08 16:02:37 +08:00
Sebastian Hengst 06724cef68 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: E6LQYNHgmiv
2017-09-08 10:53:26 +02:00
Nevin Chen 3bf9a90b15 Bug 1372040 - Temporary showing large icons for AdaptiveIconDrawable. r=maliu
I don't want to call BitmapUtils.getBitmapFromDrawable() here for AdaptiveIconDrawable cause there might be performance impact if I create bitmap in main thread.
I'll use bug 1397174 to follow up this issue.

MozReview-Commit-ID: 64FE2MOk5g0
2017-09-06 12:09:31 +08:00
Wes Kocher 57e49bbcf6 Backed out 2 changesets (bug 1379833) for android lint failures a=backout
Backed out changeset 8bbf531110dd (bug 1379833)
Backed out changeset c06bc2f7acd3 (bug 1379833)

MozReview-Commit-ID: 5iCJ3qsMC1Q
2017-09-07 16:25:50 -07:00
Andrew Swan 1d5e4f7127 Bug 1379833 Part 2: Display permissions dialog during extension install on Android r=sebastian,walkingice
MozReview-Commit-ID: 721i0B0lC4n
2017-08-15 08:35:11 -07:00
Sebastian Kaspari eda242c262 Bug 1396604 - Remove content notifications code. r=JanH,nechen
MozReview-Commit-ID: 5H45Vjnzt5Z
2017-09-04 16:51:07 +02:00
Sebastian Hengst 1c9e461665 merge mozilla-central to autoland. r=merge a=merge 2017-09-06 11:28:07 +02:00
Jing-wei Wu 2098e7eda6 Bug 1394378 - Wrap drawable to support tinting across different API levels. r=nechen
According to the comment of `DrawableCompat.wrap(Drawable)`[1], a drawable should be wrapped
to support tinting across the different API levels.

[1] https://android.googlesource.com/platform/frameworks/support/+/android-6.0.1_r67/v4/java/android/support/v4/graphics/drawable/DrawableCompat.java#329

MozReview-Commit-ID: JJ4alkFF1og
2017-09-06 10:15:14 +08:00
Sebastian Hengst 09a45e8ab9 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-06 00:00:04 +02:00
Cosm 5b0201f997 Bug 1395956 - Update gecko.readthedocs links to the new firefox-source-docs.mozilla.org location. r=chutten 2017-09-02 22:11:02 +05:30
Jan Henning 5abee4f830 Bug 1396292 - Part 2 - Explicitly run permissions callback on background thread where applicable. r=sebastian
Currently, this only concerns setImageAs, where not running on the UI thread after a permissions prompt triggers a network-related strict mode violation and interestingly enough results in a crash (as opposed to a logcat complaint) on release builds.

There's also a permissions check in the UpdateService which runs on a (but not *the*) background thread, but since we don't prompt in that case there's no action necessary.

MozReview-Commit-ID: KKxW96AyDWH
2017-09-02 21:55:40 +02:00
Jan Henning 2de6c25fbb Bug 1396292 - Part 0 - Clean up imports. r=JanH
MozReview-Commit-ID: 12CjJ2zZ2Qr
2017-09-02 21:44:55 +02:00
Chenxia Liu c2b342162e Bug 1396589 - Remove unsupported API call for lower versions. r=liuche
MozReview-Commit-ID: H1oSMcM6BCD
2017-09-05 09:14:37 -07:00
Jing-wei Wu 6e86c5586d Bug 1389092 - Adjust TwoLinePageRow layout. r=nechen
Adjust icon position and increase text size of title field.

MozReview-Commit-ID: F0eb8m7dvHY
2017-09-05 18:14:33 +08:00
Jing-wei Wu b23de8bc34 Bug 1393072 - Only tint light color for menu icons in private mode in large tablet. r=nechen
The tint logic for menu icons on different devices is:

Normal mode:
1. Mobile & small tablet -> dark color(#272727)
2. Large tablet -> dark color(#272727)

Private mode:
1. Mobile & small tablet -> dark color(#272727)
2. Large tablet -> light color(#38383D)

MozReview-Commit-ID: 9cz53PieQHY
2017-09-05 10:27:18 +08:00
Nevin Chen 8f14fde4b5 Bug 1396548 - Handle Push Notification when app is not running. r=maliu
When app is not runing, Gecko is not running. Thus we can't get Gecko pref.
We should skip Gecko pref check and show notifications when we recieve push messages and while app is not running.
Other checks (ie. Switchboard, Health Report...etc) remain the same.

MozReview-Commit-ID: H2X18VI0cnW
2017-09-04 19:15:32 +08:00
Jing-wei Wu ef1ed7936f Bug 1393477 - Resize favicon shown in doorhanger. r=nechen
MozReview-Commit-ID: I8vFxePDOeF
2017-08-31 16:29:13 +08:00
davidmurray 8ee912ec6d Bug 1391355 - add force reload support via keyboard r=JanH
MozReview-Commit-ID: 9s3paEoZueW
2017-09-02 14:20:44 -07:00
Chenxia Liu 7f66fe5e67 Bug 1396407 - [lint] Fix AlertDialog.Builder.setView call to support pre-r21. r=liuche
MozReview-Commit-ID: IDJY3sDU9g
2017-09-03 10:03:10 -07:00
Michael Comella 923399863c Bug 1388377: Add highlights empty state. r=liuche
MozReview-Commit-ID: 1M1nqWSoER3
2017-08-31 15:21:43 -07:00
Michael Comella ed31af577e Bug 1388377: Rm WelcomePanelRow. r=liuche
We show a message:
1) On first run
2) When there are no highlights

However, these are actually the same case (there are no highlights) so I wanted
to defer to that situation.

I felt it was easier to rm the WelcomePanel and rewrite it than it was to try
to morph it into an empty state for the highlights.

MozReview-Commit-ID: CrRbzA0NoRx
2017-08-31 14:39:40 -07:00
Gregory Szorc 15e2a173dc Backed out changeset 512562477a1e, c5b310c419c4 (bug 1388377) for Android build bustage 2017-09-01 17:07:21 -07:00
Michael Comella 53d19ea51a Bug 1388377: Add highlights empty state. r=liuche
MozReview-Commit-ID: 1M1nqWSoER3
2017-08-31 15:21:43 -07:00
Michael Comella ac3f3d7942 Bug 1388377: Rm WelcomePanelRow. r=liuche
We show a message:
1) On first run
2) When there are no highlights

However, these are actually the same case (there are no highlights) so I wanted
to defer to that situation.

I felt it was easier to rm the WelcomePanel and rewrite it than it was to try
to morph it into an empty state for the highlights.

MozReview-Commit-ID: CrRbzA0NoRx
2017-08-31 14:39:40 -07:00
Wes Kocher 9d60a71a71 Merge m-c to autoland, a=merge
MozReview-Commit-ID: GcHZLNPPNnI
2017-09-01 16:34:14 -07:00
Dylan Roeh c76eb80c71 Bug 1390261 - Add external storage to permissions required in FilePicker.getPermissionsForMimeType. r=snorp 2017-09-01 10:36:59 -05:00
Chenxia Liu 6ea4052714 Bug 1386735 - Rename FIXED_ROWS to clarify that they are Activity Stream sections. r=mcomella
MozReview-Commit-ID: 5aGMR2jm66s
2017-09-01 14:58:22 -07:00
Chenxia Liu 3ccb314d91 Bug 1386735 - Add additional preferences to Top Sites settings. r=mcomella
MozReview-Commit-ID: ADwLLbO41RN
2017-08-30 20:01:48 -07:00
Chenxia Liu c00165a0ac Bug 1386735 - Support disabling titles in StreamRecyclerView. r=mcomella
MozReview-Commit-ID: 15h7Lp497JN
2017-08-30 18:58:12 -07:00
Michael Comella 7ad08f5a25 Bug 1393274: Rename card_history_item -> webpage_item_row & friends. r=liuche
Unrelated to RTL changes but these names are awful and gotta go!

MozReview-Commit-ID: Kud6tgfEGkk
2017-08-30 11:45:27 -07:00
Wes Kocher 468ce1045a Backed out 3 changesets (bug 1393274) for android lint failures a=backout
Backed out changeset 52e7fa268a65 (bug 1393274)
Backed out changeset 29e8bf6a34c1 (bug 1393274)
Backed out changeset 03063f77c3f5 (bug 1393274)

MozReview-Commit-ID: 5BOV55zQaFf
2017-08-31 11:40:09 -07:00
Michael Comella 60b436f34c Bug 1393274: Rename card_history_item -> webpage_item_row & friends. r=liuche
Unrelated to RTL changes but these names are awful and gotta go!

MozReview-Commit-ID: Kud6tgfEGkk
2017-08-30 11:45:27 -07:00
Michael Comella 7c861c4a9c Bug 1393699: Add Pocket referrer URI to AS top story clicks. r=liuche
I tested this by replacing the placeholder top story URLs with [1], clicking on
the links, and verifying clicks from top stories included the referrer but
clicks from highlights and top sites did not.

[1]: https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending

MozReview-Commit-ID: CcOxkvNgOHY
2017-08-30 15:33:56 -07:00
Michael Comella 9598c2efe6 Bug 1393699: Add referrerURI to Tabs.loadUrl flows. r=liuche
This will allow us to call Tabs.loadUrl with a referrer URI from the Pocket top
stories.

MozReview-Commit-ID: IGdoTo80SGG
2017-08-30 15:26:03 -07:00
Michael Comella 5951a541e5 Bug 1393699: Rm unused BrowserApp.openUrlAndStopEditing method. r=liuche
MozReview-Commit-ID: AtrGRwtkiAT
2017-08-29 17:56:25 -07:00
Chenxia Liu 8727bc0896 Bug 1394459 - Support bookmarking, pinning of Pocket items in context menu. r=mcomella
MozReview-Commit-ID: GwZdlzQ5ZIR
2017-08-29 16:09:28 -07:00
Grigory Kruglov e492f83f07 Bug 1392802 - Increment localVersion while reconciling a bookmark if we modified its dateAdded t.s. r=rnewman
We might decide that there's an older dateAdded timestamp present for an incoming bookmark while processing it,
in which case we need to ensure that our changes will be uploaded.

MozReview-Commit-ID: BKLh4rYBiRu
2017-08-29 20:12:46 -04:00
Nevin Chen 2064215eee Bug 1394356 - Temporary remove add to home screen for Android O. r=jwu
MozReview-Commit-ID: 8Uz9QM7i4SD
2017-08-29 17:53:56 +08:00
Chenxia Liu d2953dc415 Bug 1393700 - Add test for parsing JSON response. r=mcomella
MozReview-Commit-ID: KTy3Mltrfg9
2017-08-28 16:40:39 -07:00
Wes Kocher 61dcd00825 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 5c1Pgm4aVKe
2017-08-29 16:17:50 -07:00
Sebastian Hengst 4f8a616715 merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-08-29 20:36:12 +02:00
James Willcox 4e1fb372ea Bug 1394552 - UI improvements for Custom Tabs launched from PWA r=esawin
MozReview-Commit-ID: LVAQN9Tp9DN
2017-08-29 10:31:41 -05:00
James Willcox 6e74f29748 Bug 1353868 - Split out web app manifest handling and fix scope handling r=esawin
MozReview-Commit-ID: 7MpeqitYRW8
2017-08-29 10:31:41 -05:00
Grigory Kruglov 95e66b0765 Bug 1388884 - Do not delete bookmark tombstones r=rnewman
As implemented, this means we might upload tombstones for never-synced
bookmarks. This _should_ be harmless.

MozReview-Commit-ID: DZx9yWDs1ie
2017-08-29 14:01:14 -04:00
Chenxia Liu 6738a5538b Bug 1394895 - Update Pocket API endpoint. r=mcomella
MozReview-Commit-ID: 3CYfv0Pf4Zk
2017-08-29 10:57:56 -07:00