Skip to content

Commit

Permalink
fix: save user data if user data exists
Browse files Browse the repository at this point in the history
  • Loading branch information
MinSeungHyun committed Mar 9, 2021
1 parent fd3fab6 commit 3b72d01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/in/dimigo/dimigoin/ui/BaseActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ open class BaseActivity : AppCompatActivity() {

override fun onSaveInstanceState(outState: Bundle) {
super.onSaveInstanceState(outState)
outState.putParcelable(KEY_USER_DATA, UserDataStore.userData)
if (UserDataStore.isUserDataExists) {
outState.putParcelable(KEY_USER_DATA, UserDataStore.userData)
}
}

@Suppress("DEPRECATION")
Expand Down

0 comments on commit 3b72d01

Please sign in to comment.