Fix snackbar crash in grade statistics view (#1682)

This commit is contained in:
Rafał Borcz
2021-11-25 23:48:08 +01:00
committed by GitHub
parent 10ba36ba44
commit 495e385228
2 changed files with 137 additions and 139 deletions

View File

@ -123,14 +123,6 @@ class FragmentLifecycleLogger @Inject constructor() :
Timber.d("${f::class.java.simpleName} VIEW DESTROYED")
}
override fun onFragmentActivityCreated(
fm: FragmentManager,
f: Fragment,
savedInstanceState: Bundle?
) {
Timber.d("${f::class.java.simpleName} ACTIVITY CREATED ${savedInstanceState.checkSavedState()}")
}
override fun onFragmentPaused(fm: FragmentManager, f: Fragment) {
Timber.d("${f::class.java.simpleName} PAUSED")
}
@ -141,5 +133,5 @@ class FragmentLifecycleLogger @Inject constructor() :
}
private fun Bundle?.checkSavedState() =
if (this == null) "(STATE IS NULL)" else "(STATE IS NOT NULL)"
if (this == null) "(STATE IS NULL)" else "(RESTORE STATE)"