[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 Review-Url: https://codereview.chromium.org/2348563004 Cr-Commit-Position: refs/heads/master@{#419343}
Showing
Please register or sign in to comment