Closed
Bug 1253426
Opened 9 years ago
Closed 9 years ago
When Fennec is brought to the foreground, soft keyboard needs to be restored if it was previously visible
Categories
(Firefox for Android Graveyard :: Keyboards and IME, defect)
Firefox for Android Graveyard
Keyboards and IME
Tracking
(firefox47 verified)
VERIFIED
FIXED
Firefox 47
Tracking | Status | |
---|---|---|
firefox47 | --- | verified |
People
(Reporter: rbarker, Assigned: rbarker)
References
Details
Attachments
(1 file, 3 obsolete files)
When Fennec is sent to the background with the keyboard visible. The keyboard will automatically hide when Fennec is brought to the foreground again. The keyboard state should be restored so that it is visible once Fennec is brought to the foreground.
Assignee | ||
Comment 1•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → rbarker
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8726417 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8726420 -
Flags: review?(snorp)
Comment on attachment 8726420 [details] [diff] [review]
0001-Bug-1253426-When-Fennec-is-brought-to-the-foreground-soft-keyboard-needs-to-be-restored-if-it-was-previously-visible-r-16030313-7d0706b.patch
Review of attachment 8726420 [details] [diff] [review]:
-----------------------------------------------------------------
I feel like some of this only adds to the pain of a transition to a multi-window world with the addition of stuff to GeckoAppShell. If you handled the 'application-foreground' in nsWindow and then just called restoreIMEState() on the GV from there I think it would be cleaner. Less Java code to write too :)
::: mobile/android/base/java/org/mozilla/gecko/GeckoApplication.java
@@ +116,5 @@
> GeckoAppShell.sendEventToGecko(GeckoEvent.createAppForegroundingEvent());
> mPausedGecko = false;
> }
>
> + GeckoAppShell.foregroundApp();
I'd rather not add more stuff to GeckoApplication if we can avoid it. I notice right above is where we send the 'application-foreground' event, though, so I guess this is about the same. Blah.
Attachment #8726420 -
Flags: review?(snorp) → review-
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8726420 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8726491 -
Flags: review?(snorp)
Comment on attachment 8726491 [details] [diff] [review]
0001-Bug-1253426-When-Fennec-is-brought-to-the-foreground-soft-keyboard-needs-to-be-restored-if-it-was-previously-visible-r-16030316-d9b77ad.patch
Review of attachment 8726491 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/java/org/mozilla/gecko/GeckoInputConnection.java
@@ +585,5 @@
> Editable editable = getEditable();
> outAttrs.initialSelStart = Selection.getSelectionStart(editable);
> outAttrs.initialSelEnd = Selection.getSelectionEnd(editable);
> +
> + if (!GeckoApplication.get().isApplicationInBackground()) {
Another thing we'll have to untangle if we want to run without GeckoApplication, but...alright I guess?
Attachment #8726491 -
Flags: review?(snorp) → review+
Assignee | ||
Comment 6•9 years ago
|
||
Updated patch so that it would work with multiple GeckoViews.
Attachment #8726491 -
Attachment is obsolete: true
Attachment #8726842 -
Flags: review?(snorp)
Attachment #8726842 -
Flags: review?(snorp) → review+
Comment 8•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 47
Comment 9•9 years ago
|
||
Tested using:
Device: Huawei Honor (Android 5.1.1)
Build: Firefox for Android Beta - 47.0b6
Updated•9 years ago
|
Comment 10•9 years ago
|
||
I'll mark this bug as verified fixed since it is verified.
Status: RESOLVED → VERIFIED
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
•