Closed Bug 801043 Opened 12 years ago Closed 10 years ago

Fix share menu ordering (currently neither ordered by frequency nor alphabetically)

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: tech4pwd, Unassigned)

References

Details

Attachments

(1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/19.0 Firefox/19.0 Build ID: 20121012030610 Steps to reproduce: The share menu should be either ordered by frequency or alphabetically. Currently it has Bluetooth at the top on a device that has never had Bluetooth on, next is Messages, Notes (an app that's never been opened) and then Twitter before Google+. In short the ordering is rather haphazard.
OS: Windows 7 → Android
Hardware: x86 → ARM
The ordering is likely system applications followed by user-installed applications and is likely using Android's sort based on a preferred order that might change over time http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/GeckoApp.java#662
http://developer.android.com/reference/android/content/pm/ResolveInfo.html#preferredOrder "Order of result according to the user's preference. If the user has not set a preference for this result, the value is 0; higher values are a higher priority." Kind of vague, but that is how the ordering is setup right now.
Sriram/Mark, thoughts?
Yup the order isn't changing based on frequency/preference for me. It could just be me/my device though.
OK, so I've been testing all this time and the order definitely isn't changing.
In the time I've been trying to get Tweakdeck and Whatsapp to the top on Firefox, a Quikpic update came out that changed their share menu from alphabetical to frequency and as such, I've quickly managed to get WhatsApp to the top of that list.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch Sort "Share" list alphabetically (obsolete) — Splinter Review
I'd like to see the list sorted alphabetically - I tried several other apps that have a "share" option, and they all sort alphabetically. Here's a patch to change the sorting.
Attachment #693993 - Flags: feedback?
Attachment #693993 - Flags: feedback? → review?(sriram)
The order by preference doesnt seem to work. Is it ok to change it to show alphabetically?
Flags: needinfo?(ibarlow)
If we're unable to fix this, can we not punt over to the system? It'd look a lot more professional than an alphabetical list given that most modern apps are sorting by use-frequency.
(In reply to Sriram Ramasubramanian [:sriram] from comment #8) > The order by preference doesnt seem to work. Is it ok to change it to show > alphabetically? Yeah, I agree with Paul here, our end goal should be to surface the most commonly used share items first. I would even go one step further and suggest a model similar to the Gallery app, which shows the first 3-4 most commonly used items, and hides the rest behind a "More" row.
Flags: needinfo?(ibarlow)
I've filed Bug 825799 to cover using ShareActionProvider, which does all the magic ordering for you, and even provides the fun "most recent" bar. Also, sure would be nice to start with Firefox Sync shuffled to the top.
Depends on: 825799
Comment on attachment 693993 [details] [diff] [review] Sort "Share" list alphabetically The fix in bug 809790 removes the custom Share menu code, which results in the same behaviour as this patch did anyways.
Attachment #693993 - Attachment is obsolete: true
Attachment #693993 - Flags: review?(sriram)
Mark - Sorry for the churn. We plan on getting the menu back into a later release, once we figure out a good plan to work around these kind of bugs.
No problem! I'm happy with the way it is now and will be glad to help test when the menu strikes back.
The reason we won't be able to do this is, Android allows apps to store the choosen activities through a history file via ShareActionProvider. (http://developer.android.com/reference/android/widget/ShareActionProvider.html#setShareHistoryFileName%28java.lang.String%29).
When FHR is no longer taking all of my time, I'd like to hack together something that addresses sharing a little more directly.
Depends on: 869123
No longer depends on: 825799
aaron, can you resolve this fixed please?
Is it?
Yup, we're ordered by frequency now.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
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: