Closed Bug 1377286 Opened 7 years ago Closed 7 years ago

Support pinning from other panels

Categories

(Firefox for Android Graveyard :: Awesomescreen, enhancement, P2)

All
Android
enhancement

Tracking

(firefox56 fixed)

RESOLVED FIXED
Firefox 56
Tracking Status
firefox56 --- fixed

People

(Reporter: sebastian, Assigned: Grisha)

References

Details

(Whiteboard: [MobileAS])

Attachments

(2 files)

No description provided.
Priority: -- → P2
Since we have multiple styles of context menus (Bug 1377292), two types of pins (Bug 1377295), and two types of Top Sites, this gets a bit tricky. Code handling the menus needs to segment what its doing based on Top Sites panel style first, and pinned/not pinned state of a history item second. Essentially, we're looking at some code duplication between classic context menu and friends vs what A-S is doing. All of this becomes progressively less hacky if we may assume that positioned pins are dead, Activity Stream is the one and only Top Sites UI, and that context menus are unified.
Assignee: nobody → gkruglov
Status: NEW → ASSIGNED
Comment on attachment 8883703 [details] Bug 1377286 - Pre: firm up access levels in HomeContextMenuInfo https://reviewboard.mozilla.org/r/154604/#review160794 ::: mobile/android/base/java/org/mozilla/gecko/home/HomeContextMenuInfo.java:25 (Diff revision 1) > */ > public class HomeContextMenuInfo extends AdapterContextMenuInfo { > > public String url; > public String title; > - public boolean isFolder; > + boolean isFolder; nit: In some other classes we prefix them with a comment: > /* package */ or > /* package-private */ Just to make it explicit that this is a deliberate decission and not a mistake.
Attachment #8883703 - Flags: review?(s.kaspari) → review+
Comment on attachment 8883704 [details] Bug 1377286 - Allow pinning items to Activity Stream from other home panels https://reviewboard.mozilla.org/r/154606/#review160796 ::: mobile/android/base/java/org/mozilla/gecko/home/HomeContextMenuInfo.java:31 (Diff revision 2) > + // Ensure memory visibility, as this is accessed non-concurrently from different threads. > + // See HomeFragment's onCreateContextMenu. > + @Nullable volatile Boolean isAsPinned; Isn't this only accessed on the UI thread?
Attachment #8883704 - Flags: review?(s.kaspari) → review+
Comment on attachment 8883704 [details] Bug 1377286 - Allow pinning items to Activity Stream from other home panels https://reviewboard.mozilla.org/r/154606/#review160796 > Isn't this only accessed on the UI thread? You are correct!
Pushed by gkruglov@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e6b2a8854efc Pre: firm up access levels in HomeContextMenuInfo r=sebastian https://hg.mozilla.org/integration/autoland/rev/107cb0545ba3 Allow pinning items to Activity Stream from other home panels r=sebastian
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
No longer blocks: 1381359
Depends on: 1381359
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: