Closed
Bug 1266182
Opened 10 years ago
Closed 5 years ago
Refactor SimpleHelperUI and HomeScreenPrompt to remove duplication
Categories
(Firefox for Android Graveyard :: Theme and Visual Design, defect)
Firefox for Android Graveyard
Theme and Visual Design
Tracking
(firefox48 affected)
RESOLVED
INCOMPLETE
| Tracking | Status | |
|---|---|---|
| firefox48 | --- | affected |
People
(Reporter: ahunt, Unassigned)
References
Details
Bug 1246238 adds a SimpleHelperUI, with plenty of duplicate code from HomeScreenPrompt. We should extract the common code, and maybe extract common layout elements (e.g. we could share the container from the layout file, since that's also required for the shared animations - and then <include> specific layouts for the subclasses).
Comment 1•10 years ago
|
||
Thanks for filing this!
HomeScreenPrompt is already inspired by TabQueuePrompt partially and I was wondering if it makes sense to create a base implementation for that. Seems like it does. :)
| Reporter | ||
Comment 2•10 years ago
|
||
Some more comments from sebastian in https://bugzilla.mozilla.org/show_bug.cgi?id=1246238#c7:
(Copying them here since that bug is just about to close)
> Maybe it makes more sense to create a "base" activity that creates the basic
> layout, handles the animations, touching outside, clicking the close button,
> has helpful methods and the different prompts extend from it, inject their
> own layout in the shell provided by the base class and then do whatever they
> want to do. What's nice about this is that it is more flexible and you can
> handle the success/rejection case in the prompt (if possible) and do not
> necessarily need to return something and this is again handled somewhere
> else.
There's also:
* bug 1232706: "Add to Homescreen"
* bug 1217174: helper UI for send-to-device
A good reason to remove the duplication: the behavior for whatever prompt I was seeing in bug 1268576 is different than the other prompts. If were to fix it, we want to make sure it doesn't affect the other implementation.
Blocks: 1268576
| Reporter | ||
Comment 5•10 years ago
|
||
Dropping this for now. We should do this before adding any new prompts, however due to the number of prompts it's also hard to guarantee no regressions, hence there's not much value unless we're adding more prompts.
Assignee: ahunt → nobody
Comment 6•5 years ago
|
||
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INCOMPLETE
Updated•5 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
•