Add LicenseFragment
This commit is contained in:
1 parent
92240c6c2c
commit
9ad933934f
11 files changed
+407
No files matched your search
@@ -59,6 +59,7 @@ open class BasePreferenceFragment :
|
||||
"mytags" -> MyTagsFragment()
|
||||
"uconfig" -> UConfigFragment()
|
||||
"hosts" -> HostsFragment()
|
||||
"license" -> LicenseFragment()
|
||||
else -> null
|
||||
}
|
||||
fragment?.let {
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.hippo.ehviewer.ui.fragment
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.ComposeView
|
||||
import com.hippo.ehviewer.R
|
||||
import com.hippo.ehviewer.ui.compose.setMD3Content
|
||||
import com.mikepenz.aboutlibraries.ui.compose.LibrariesContainer
|
||||
|
||||
class LicenseFragment : BaseFragment() {
|
||||
override fun getFragmentTitle(): Int {
|
||||
return R.string.license
|
||||
}
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater,
|
||||
container: ViewGroup?,
|
||||
savedInstanceState: Bundle?,
|
||||
): View {
|
||||
return ComposeView(inflater.context).apply {
|
||||
setMD3Content {
|
||||
LibrariesContainer(modifier = Modifier.fillMaxSize())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user