Closed
Bug 696311
Opened 13 years ago
Closed 13 years ago
Show current url in awesomebar when you tap it.
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: wesj, Unassigned)
References
Details
Attachments
(1 file)
2.84 KB,
patch
|
lucasr
:
review+
|
Details | Diff | Splinter Review |
We're calling the wrong method when you tap the awesomebar, so the current url isn't being filled in. This fixes that, and abstracts things a little bit to combine some duplicate code.
Reporter | ||
Updated•13 years ago
|
Attachment #568597 -
Flags: review?(lucasr.at.mozilla)
Updated•13 years ago
|
Attachment #568597 -
Attachment is patch: true
Updated•13 years ago
|
Whiteboard: [QA+]
Comment 1•13 years ago
|
||
Comment on attachment 568597 [details] [diff] [review]
Patch v1
Review of attachment 568597 [details] [diff] [review]:
-----------------------------------------------------------------
::: embedding/android/GeckoApp.java
@@ +954,5 @@
> intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION | Intent.FLAG_ACTIVITY_NO_HISTORY);
> + intent.putExtra(AwesomeBar.TYPE_KEY, aType.name());
> + // if we're adding a new tab, we don't want to show the old url
> + if (aType != AwesomeBar.Type.ADD) {
> + Tab tab = Tabs.getInstance().getSelectedTab();
Shouldn't the comment about new tabs actually be here?
@@ +956,5 @@
> + // if we're adding a new tab, we don't want to show the old url
> + if (aType != AwesomeBar.Type.ADD) {
> + Tab tab = Tabs.getInstance().getSelectedTab();
> + if (!tab.getHistory().empty()) {
> + intent.putExtra(AwesomeBar.CURRENT_URL_KEY, tab.getHistory().peek().mUri);
This is a lot of chained calls :-) No big deal though.
@@ +962,2 @@
> }
> startActivityForResult(intent, AWESOMEBAR_REQUEST);
Not on your patch but I wonder why showAwesomebar returns a boolean if it always returns true.
Attachment #568597 -
Flags: review?(lucasr.at.mozilla) → review+
Comment 3•13 years ago
|
||
All this is not needed. There is already a function taking care of this. I'll upload a new patch.
Comment 4•13 years ago
|
||
Sorry. This is a better patch. :)
Reporter | ||
Comment 5•13 years ago
|
||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 6•13 years ago
|
||
Mozilla/5.0 (Android; Linux armv7l; rv:10.0a1) Gecko/20111025 Firefox/10.0a1 Fennec/10.0a1
Status: RESOLVED → VERIFIED
OS: All → Android
Hardware: All → ARM
Updated•13 years ago
|
Whiteboard: [QA+]
Assignee | ||
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
•