-
Notifications
You must be signed in to change notification settings - Fork 25
Tidy up MediaSendFragment #1068
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
} | ||
|
||
override fun onStart() { | ||
super.onStart() | ||
|
||
fragmentPagerAdapter!!.restoreState(viewModel!!.drawState) | ||
viewModel!!.onImageEditorStarted() | ||
val viewModel = viewModel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason you are re attributing viewModel and the adapter here and in onStop? Can't you use them directly if they are set up properly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently smartcasts can't be applied to properties
This PR contains changes to improve the code quality in
MediaSendFragment
, and also:CompletableFuture
so we can await them in coroutine