File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/src/main/java/org/schabi/newpipe/about Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import android.view.View
77import android.view.ViewGroup
88import android.webkit.WebView
99import androidx.appcompat.app.AlertDialog
10+ import androidx.core.os.BundleCompat
1011import androidx.core.os.bundleOf
1112import androidx.fragment.app.Fragment
1213import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
@@ -33,7 +34,9 @@ class LicenseFragment : Fragment() {
3334 super .onCreate(savedInstanceState)
3435 softwareComponents = arguments?.parcelableArrayList<SoftwareComponent >(ARG_COMPONENTS )!!
3536 .sortedBy { it.name } // Sort components by name
36- activeSoftwareComponent = savedInstanceState?.getSerializable(SOFTWARE_COMPONENT_KEY ) as ? SoftwareComponent
37+ activeSoftwareComponent = savedInstanceState?.let {
38+ BundleCompat .getSerializable(it, SOFTWARE_COMPONENT_KEY , SoftwareComponent ::class .java)
39+ }
3740 }
3841
3942 override fun onDestroy () {
You can’t perform that action at this time.
0 commit comments