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

Issue 2348563004: [Remoting Android] Fix split-screen crash (Closed)

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

Description

[Remoting Android] Fix split-screen crash Previously we assumed that DestopView.onAttachedToWindow() will only be called after DesktopView.init() is called but this is not true when we enter split screen mode. Since the lifecycle of View.onAttached... and View.onDetached in relate to Activity.onCreate() and Activity.onDestroy() is not well documented and behaves quite surprisingly, it may be better to just rely on the lifecycle of the activity itself. This CL removes DesktopView's onAttachedToWindow() and onDetachedFromWindow() overrides and handles initialization and invalidation by Desktop's onCreate() and onDestroy(). BUG=647823 Committed: https://crrev.com/410a599d9d3c9e49d3b77dbc1063938981fb5b30 Cr-Commit-Position: refs/heads/master@{#419343}

Patch Set 1 #

Patch Set 2 : s/invalidate/destroy/. Function name is already used. #

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

Messages

Total messages: 8 (3 generated)
Yuwei
ptal!
4 years, 3 months ago (2016-09-16 23:18:59 UTC) #2
joedow
lgtm
4 years, 3 months ago (2016-09-16 23:26:00 UTC) #3
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/2348563004/20001
4 years, 3 months ago (2016-09-16 23:26:44 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-17 00:23:56 UTC) #6
commit-bot: I haz the power
4 years, 3 months ago (2016-09-17 00:26:17 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/410a599d9d3c9e49d3b77dbc1063938981fb5b30
Cr-Commit-Position: refs/heads/master@{#419343}

Powered by Google App Engine
This is Rietveld 408576698