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

Issue 2067093002: Fixing Toolbar flakiness in Android client. (Closed)

Created:
4 years, 6 months ago by joedow
Modified:
4 years, 6 months ago
Reviewers:
Lambros
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing Toolbar flakiness in Android client. This change addresses the problems that some users have been seeing in the auto-hiding toolbar in our Android app. The auto-hide behavior appears to work correctly until the user brings up the soft keyboard. At this point the toolbar might be hidden but attempts to display the toolbar again will fail. We rely on System UI visibility events being fired to tell us when to show or hide the Toolbar and in some cases these are not firing consistently which is the root cause of the issues above. This CL changes the way in which we update the System UI visibility when the soft keyboard is displayed. I removed the old logic which would hide the ToolBar and System UI (and rely on the underlying OS to finish hiding the System UI when the keyboard was dismissed) and moved it to our Keyboard detection method. Now we only hide the ActionBar when the auto-hide timer fires and the soft keyboard is present and only call to hide the System UI once the soft keyboard is dismissed. This also solves a usability problem we had previously where the call to hide the System UI would cause it to turn transparent which made finding the dismiss KB button difficult when it was rendered over a white background. I've also added a method which is used when we resume the app which checks the current System UI state and updates the ActionBar visibility (and timer) to match. This fixes some behavior I saw bring the app back from a stopped state where the System UI and ActionBar were out of sync. BUG=618388 Committed: https://crrev.com/e9707b3db49ad29d458932a5940d5df10ff14416 Cr-Commit-Position: refs/heads/master@{#399980}

Patch Set 1 #

Patch Set 2 : Fixing a comment #

Patch Set 3 : Merged patch with ToT #

Patch Set 4 : A bit more cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -52 lines) Patch
M remoting/android/java/src/org/chromium/chromoting/Desktop.java View 1 2 3 10 chunks +45 lines, -51 lines 0 comments Download
M remoting/android/java/src/org/chromium/chromoting/DesktopView.java View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2067093002/40001
4 years, 6 months ago (2016-06-15 04:00:26 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-15 04:21:32 UTC) #4
joedow
PTAL! Thanks, Joe
4 years, 6 months ago (2016-06-15 15:55:18 UTC) #6
Lambros
lgtm
4 years, 6 months ago (2016-06-15 18:47:17 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2067093002/60001
4 years, 6 months ago (2016-06-15 18:58:12 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-15 19:03:03 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 19:04:10 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e9707b3db49ad29d458932a5940d5df10ff14416
Cr-Commit-Position: refs/heads/master@{#399980}

Powered by Google App Engine
This is Rietveld 408576698