Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Issue 2391993004: [Remoting Android] Hide soft keyboard button when physical keyboard is connected (Closed)

Created:
4 years, 2 months ago by Yuwei
Modified:
4 years, 2 months ago
Reviewers:
joedow
CC:
chromium-reviews, agrieve+watch_chromium.org, chromoting-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Remoting Android] Hide soft keyboard button when physical keyboard is connected Currently the soft keyboard button on the desktop actionbar is visible when a physical keyboard is present, in which case the button has unexpected behavior: * Soft keyboard doesn't show up since physical keyboard is present. * Actionbar and status bar won't go away since triggering the IME blocks requests to hide the status bar but won't show any soft keyboard. Neither can be easily fixed due to limitation of available API. So this CL hides the soft keyboard button when a physical keyboard is present to prevent unexpected behaviors. BUG=640426 Committed: https://crrev.com/f0925da1a559aa0d3d7e02423ad22e45a626f0fb Cr-Commit-Position: refs/heads/master@{#423401}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fix hasPhysicalKeyboard checking #

Patch Set 3 : Add check for nonhidden keyboard #

Patch Set 4 : Only hide the button for QWERTY keyboard #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -22 lines) Patch
M remoting/android/java/src/org/chromium/chromoting/Desktop.java View 1 2 3 5 chunks +34 lines, -0 lines 0 comments Download
M remoting/android/java/src/org/chromium/chromoting/DesktopView.java View 2 chunks +0 lines, -14 lines 0 comments Download
M remoting/android/java/src/org/chromium/chromoting/TouchInputHandler.java View 1 5 chunks +6 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Yuwei
PTAL. Thanks!
4 years, 2 months ago (2016-10-05 18:33:09 UTC) #2
joedow
lgtm after comments addressed and approach validated. https://codereview.chromium.org/2391993004/diff/1/remoting/android/java/src/org/chromium/chromoting/Desktop.java File remoting/android/java/src/org/chromium/chromoting/Desktop.java (right): https://codereview.chromium.org/2391993004/diff/1/remoting/android/java/src/org/chromium/chromoting/Desktop.java#newcode83 remoting/android/java/src/org/chromium/chromoting/Desktop.java:83: private boolean ...
4 years, 2 months ago (2016-10-05 22:50:59 UTC) #3
Yuwei
It looks like the suggestion we discussed is not very practical. Overriding InputMethodService is in ...
4 years, 2 months ago (2016-10-06 00:26:50 UTC) #4
joedow
Thanks for looking into the override mechanism, at first it seemed reasonable but it was ...
4 years, 2 months ago (2016-10-06 00:50:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2391993004/60001
4 years, 2 months ago (2016-10-06 02:14:50 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-06 02:25:14 UTC) #9
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 02:28:10 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f0925da1a559aa0d3d7e02423ad22e45a626f0fb
Cr-Commit-Position: refs/heads/master@{#423401}

Powered by Google App Engine
This is Rietveld 408576698