Closed
Bug 714070
Opened 13 years ago
Closed 10 years ago
Tapping on the "Installation completed" toaster notification should open up the Add-ons manager
Categories
(Firefox for Android Graveyard :: General, defect, P4)
Tracking
(firefox34 verified)
VERIFIED
FIXED
Firefox 34
Tracking | Status | |
---|---|---|
firefox34 | --- | verified |
People
(Reporter: martijn.martijn, Assigned: rahul.parsani, Mentored)
References
()
Details
(Whiteboard: [lang=javascript][good next bug])
Attachments
(2 files, 1 obsolete file)
117.80 KB,
image/png
|
Details | |
2.74 KB,
patch
|
wesj
:
review+
|
Details | Diff | Splinter Review |
Steps to reproduce:
- Open http://people.mozilla.org/~mfinkle/addons/
- Tap on "Install" for one of the Add-ons
- Tap on "Allow" for the prevention doorhanger notification
- Tap on "Install" when the install dialog appears
- When the "Installation completed" toaster notification appears, tap on it
Expected result:
- Add-ons manager page appears
Actual result:
- Nothing happens
Comment 1•13 years ago
|
||
Standard Android toasts don't really support a "click and do something" behavior. We'd need a custom toast for that, and I don't know that we really need it.
Priority: -- → P4
Comment 2•11 years ago
|
||
We have super toasts now, making wesj the mentor on this old bug (feel free to bounce it back to me if you don't want to mentor this).
Whiteboard: [mentor=wesj]
Updated•11 years ago
|
Whiteboard: [mentor=wesj] → [mentor=wesj][lang=java]
Hi I'm looking to become involved in fennec and I'm thinking of working on this bug as my first task. I learned java and android in university and would like to use what I learned for a project bigger than personal apps. I see that wesj is the mentor on this, how to you feel about me doing this as my first bug for fennec?
Comment 4•11 years ago
|
||
Sure! It should be a fairly simple fix, but most (all?) of the changes should be in javascript (the mentor notes were wrong, I just fixed them). Are you ok with that?
Regardless, step 1 and the hardest step here is probably just to get Fennec building and installing on a device or the emulator (but preferably a device).
Whiteboard: [mentor=wesj][lang=java] → [mentor=wesj][lang=javascript]
Thanks I might come back to this bug when I've completed my first. I think it would be better if my first bug uses java which is the language i'm most comfortable with. Once I know my way around fennec a bit more I I'll consider working on bugs with languages less familiar to me. I'm looking at a few others from the get involved page but if you know of any others that require java and you think would be suitable for a first timer let me know, I look forward to participating!
Comment 7•11 years ago
|
||
Sure. Like I said above, step 1 is building. There are some fairly good instructions on that here:
https://wiki.mozilla.org/Mobile/Fennec/Android
Feel free to comment here, by email, or on irc.mozilla.org (#mobile) if you need help.
Reporter | ||
Comment 8•11 years ago
|
||
See also bug 884075 where this was implemented.
Comment 9•11 years ago
|
||
M(In reply to Michael from comment #6)
> Hi this is my first bug. Can anyone get me started?
Hi, Michael - are you still working on this?
Whiteboard: [mentor=wesj][lang=javascript] → [mentor=wesj][lang=javascript][good next bug]
Updated•10 years ago
|
Mentor: wjohnston
Whiteboard: [mentor=wesj][lang=javascript][good next bug] → [lang=javascript][good next bug]
Assignee | ||
Comment 10•10 years ago
|
||
Added a new native event. There is a new string that is the label for the ButtonToast. The button toast is only generated when a addon is installed. Clicking on it should take you to the addon tab. Let me know if this can be improved.
Attachment #8472733 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Attachment #8472733 -
Flags: review+ → review?(wjohnston)
Comment 11•10 years ago
|
||
Comment on attachment 8472733 [details] [diff] [review]
714070.patch
Review of attachment 8472733 [details] [diff] [review]:
-----------------------------------------------------------------
I think we can do this all in JS. I also think we might need to think about the string/icon a bit, but I don't mind landing and iterating on that later.
::: mobile/android/base/GeckoApp.java
@@ +521,5 @@
> GeckoAccessibility.updateAccessibilitySettings(this);
>
> + } else if ("AddonsManager:Open".equals(event)) {
> + Tabs.getInstance().loadUrlInTab(AboutPages.ADDONS);
> +
extra whitespace here, but I don't think you'll need this...
::: mobile/android/chrome/content/browser.js
@@ +6116,5 @@
> NativeWindow.toast.show(msg, "short");
> },
> +
> + openAddonManager: function() {
> + sendMessageToJava({ type: "AddonsManager:Open" });
You should be able to just use BrowserApp.addTab() here, like this:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/browser.js#3012
(you probably don't need all those options). That will get rid of all this message passing for you. You can open about:addons, or you could open something like about:addons#myAddingID if we have it. I doubt the add-on manager does anything with that yet (but we can do that in a separate bug).
::: mobile/android/locales/en-US/chrome/browser.properties
@@ +11,5 @@
> +alertAddonsInstalledNoRestart.message=Installation complete
> +
> +# LOCALIZATION NOTE (alertAddonsInstalledNoRestart.action2): Ideally, this string is short (it's a
> +# button label) and upper-case, to match Google and Android's convention.
> +alertAddonsInstalledNoRestart.action2=ADD-ONS
Hmm... We probably need some UX feedback on this string/icon interaction. I think this should be a verb. "OPEN" maybe? "SETUP"? Can you post a screenshot for them at least?
Attachment #8472733 -
Flags: review?(wjohnston) → review-
Assignee | ||
Comment 12•10 years ago
|
||
Screenshot for the string/icon interaction.
Assignee | ||
Comment 13•10 years ago
|
||
Removed the sendMessageToJava call.
BrowserApp.addTab only needed the parentId param for the back button to work correctly.
Attachment #8472733 -
Attachment is obsolete: true
Attachment #8473393 -
Flags: review?(wjohnston)
Assignee | ||
Comment 14•10 years ago
|
||
I haven't changed the string for the ButtonToast. Based on the screenshot, let me know what it should be.
Comment 15•10 years ago
|
||
Comment on attachment 8473393 [details] [diff] [review]
714070.patch
Review of attachment 8473393 [details] [diff] [review]:
-----------------------------------------------------------------
Nice. Your string is mfinkle approved too, so we can use it :)
Attachment #8473393 -
Flags: review?(wjohnston) → review+
Updated•10 years ago
|
Keywords: checkin-needed
Updated•10 years ago
|
Assignee: nobody → rahul.parsani
Comment 17•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 18•10 years ago
|
||
Keywords: checkin-needed
Whiteboard: [lang=javascript][good next bug] → [lang=javascript][good next bug][fixed-in-fx-team]
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [lang=javascript][good next bug][fixed-in-fx-team] → [lang=javascript][good next bug]
Target Milestone: --- → Firefox 34
Comment 20•10 years ago
|
||
Verified as fixed in
Build: Firefox for Android 34.0a2 (2014-09-17)
Device: Asus Transformer Pad TF300T (Android 4.2.1)
Status: RESOLVED → VERIFIED
status-firefox34:
--- → verified
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•