The usage of `android:configChanges` with some fla...
# compose
j
The usage of
android:configChanges
with some flags (
orientation
for example) will be the standard in the future? I think that Compose can manage better the responsibility. In case of an affirmative reply, extending the ViewModel should be useless?
🙌 2
s
Are you sure is ViewModel’s only responsibility is against orientation changes? What about
Do not keep activities
and even fragments?
j
There will have only one activity, zero fragments
s
on an old project, before arch components, we had similar setup. ViewModels worked well then. but I see no point in avoiding it now.
j
Yeah, but I am not talking about old code. I see no reason to use fragments with a new project which uses compose
I think @Adam Powell talked about this in another thread
a
ViewModel also has some saved instance state APIs for working with process restart, but compose has savedInstanceState APIs as well
👍 2
s
@Javier I think for Compose only app, Animation while going from potrait to landscape should be achievable now.