Closed
Bug 859212
Opened 11 years ago
Closed 11 years ago
Change AwesomeBar entry mode for stock gesture keyboard and TouchPal
Categories
(Firefox for Android Graveyard :: Keyboards and IME, defect)
Tracking
(firefox22 fixed, firefox23 verified)
VERIFIED
FIXED
Firefox 23
People
(Reporter: cpeterson, Assigned: cpeterson)
References
Details
Attachments
(4 files)
4.32 KB,
patch
|
jchen
:
review+
|
Details | Diff | Splinter Review |
4.16 KB,
patch
|
jchen
:
review+
akeybl
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
3.59 KB,
patch
|
jchen
:
review+
|
Details | Diff | Splinter Review |
4.04 KB,
patch
|
jchen
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•11 years ago
|
||
Part 1: Move AwesomeBar's Swype logic to InputMethods.
Attachment #734482 -
Flags: review?(nchen)
Assignee | ||
Comment 2•11 years ago
|
||
Part 2: Add Android stock keyboard and TouchPal to list of gesture keyboards.
Attachment #734483 -
Flags: review?(nchen)
Assignee | ||
Comment 3•11 years ago
|
||
Part 3: Remove unused InputMethod names. This commented out code has little value. If we need to add a special case for one of these input methods, we can recheck and document its IME name then. The TouchPal name, for example, was wrong.
Attachment #734485 -
Flags: review?(nchen)
Assignee | ||
Comment 4•11 years ago
|
||
Part 4: Replace fancy static Java collection with simpler if statement. The fancy static collection sHBKWhiteList is hard to read and causes unnecessary memory allocations during static initialization of the InputMethods class. I think the direct string equals() checks are easy to read and probably more efficient.
Attachment #734487 -
Flags: review?(nchen)
Comment 5•11 years ago
|
||
Comment on attachment 734482 [details] [diff] [review] part-1-move-swype-check.patch Review of attachment 734482 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! ::: mobile/android/base/InputMethods.java @@ +102,5 @@ > + > + public static boolean isGestureKeyboard(String inputMethod) { > + return inputMethod.equals(METHOD_SWYPE) || > + inputMethod.equals(METHOD_SWYPE_BETA); > + } I think you should just take a Context argument and get the current IME inside the method; see 'shouldDelayAwesomebarUpdate(Context context)' above. Also, switch around the comparisons, i.e. > return METHOD_SWYPE.equals(inputMethod) || > METHOD_SWYPE_BETA.equals(inputMethod);
Attachment #734482 -
Flags: review?(nchen) → review+
Comment 6•11 years ago
|
||
Comment on attachment 734483 [details] [diff] [review] part-2-add-stock-and-touchpal-keyboards.patch Review of attachment 734483 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! ::: mobile/android/base/InputMethods.java @@ +108,5 @@ > + return (Build.VERSION.SDK_INT >= 17 && (inputMethod.equals(METHOD_GOOGLE_LATINIME) || > + inputMethod.equals(METHOD_STOCK_LATINIME))) || > + inputMethod.equals(METHOD_SWYPE) || > + inputMethod.equals(METHOD_SWYPE_BETA) || > + inputMethod.equals(METHOD_TOUCHPAL_KEYBOARD); Don't forget to switch around comparisons :)
Attachment #734483 -
Flags: review?(nchen) → review+
Comment 7•11 years ago
|
||
Comment on attachment 734485 [details] [diff] [review] part-3-remove-unused-ime-names.patch Review of attachment 734485 [details] [diff] [review]: ----------------------------------------------------------------- Thanks!
Attachment #734485 -
Flags: review?(nchen) → review+
Comment 8•11 years ago
|
||
Comment on attachment 734487 [details] [diff] [review] part-4-simplify-hkb-whitelist.patch Review of attachment 734487 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! We are not actually using canUseInputMethodOnHKB(), but we can keep it.
Attachment #734487 -
Flags: review?(nchen) → review+
Assignee | ||
Comment 9•11 years ago
|
||
Landed with the suggested changes: * Changed isGestureKeyboard() to take Context * Switched METHOD.equals() string comparisons * Removed unused canUseInputMethodOnHKB() https://hg.mozilla.org/integration/mozilla-inbound/rev/d678fbf4ca2e https://hg.mozilla.org/integration/mozilla-inbound/rev/0c4b651f1a44 https://hg.mozilla.org/integration/mozilla-inbound/rev/f1a739e3b5fa https://hg.mozilla.org/integration/mozilla-inbound/rev/79c23403daee
Comment 10•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d678fbf4ca2e https://hg.mozilla.org/mozilla-central/rev/0c4b651f1a44 https://hg.mozilla.org/mozilla-central/rev/f1a739e3b5fa https://hg.mozilla.org/mozilla-central/rev/79c23403daee
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•11 years ago
|
||
Comment on attachment 734483 [details] [diff] [review] part-2-add-stock-and-touchpal-keyboards.patch [Approval Request Comment] Bug caused by (feature/regressing bug #): N/A User impact if declined: Users using Android's stock gesture keyboard or the TouchPal gesture keyboard will still need to manually enter spaces when "swyping" words in the address bar. Testing completed (on m-c, etc.): Risk to taking this patch (and alternatives if risky): Low risk. These patches just add Android's stock keyboard and TouchPal to the list of gesture keyboards. The consequence of being in this list only changes the keyboards' "text or URL?" mode which controls which keys are displayed and whether to auto-insert spaces between words. String or IDL/UUID changes made by this patch: N/A
Attachment #734483 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #734483 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•11 years ago
|
Comment 12•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/3ddd71814580 https://hg.mozilla.org/releases/mozilla-aurora/rev/201d7b638887 https://hg.mozilla.org/releases/mozilla-aurora/rev/da1b15adb6a0 https://hg.mozilla.org/releases/mozilla-aurora/rev/b0fd16fe3162
Updated•11 years ago
|
Updated•3 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
•