mirror of
https://github.com/ev-map/EVMap.git
synced 2026-04-23 15:47:08 -04:00
add open source libraries screen
This commit is contained in:
@@ -10,6 +10,7 @@ import androidx.preference.PreferenceFragmentCompat
|
||||
import com.johan.evmap.BuildConfig
|
||||
import com.johan.evmap.MapsActivity
|
||||
import com.johan.evmap.R
|
||||
import com.mikepenz.aboutlibraries.LibsBuilder
|
||||
|
||||
|
||||
class AboutFragment : PreferenceFragmentCompat() {
|
||||
@@ -36,6 +37,16 @@ class AboutFragment : PreferenceFragmentCompat() {
|
||||
(activity as? MapsActivity)?.openUrl(preference.summary.toString())
|
||||
true
|
||||
}
|
||||
"oss_licenses" -> {
|
||||
LibsBuilder()
|
||||
.withLicenseShown(true)
|
||||
.withAboutVersionShown(false)
|
||||
.withAboutIconShown(false)
|
||||
.withActivityTitle(getString(R.string.oss_licenses))
|
||||
.withExcludedLibraries()
|
||||
.start(requireActivity())
|
||||
true
|
||||
}
|
||||
else -> super.onPreferenceTreeClick(preference)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user