DroidKaigi / conference-app-2018

The Official Conference App for DroidKaigi 2018 Tokyo
Apache License 2.0
1.35k stars 333 forks source link

Use fragmentmanager isStateSaved function #649

Closed akoufa closed 6 years ago

akoufa commented 6 years ago

We can check the fragmentmanager state before committing the transaction, to use commit() safely instead of blindly using commitAllowingStateLoss(). This enables the commit to not be lost if the activity needs to be restored from its state.

Issue

Overview (Required)

-

Links

-

Screenshot

Before After
takahirom commented 6 years ago

🆒

takahirom commented 6 years ago

LGTM👍