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. #
Messages
Total messages: 8 (3 generated)
|