Revision control

Copy as Markdown

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.focus.settings
import mozilla.components.support.license.LibrariesListFragment
import org.mozilla.focus.R
import org.mozilla.focus.ext.showToolbar
/**
* Displays the list of software licenses used within the app and it's full license content.
*/
class AboutLibrariesFragment : LibrariesListFragment() {
override val licenseData = LicenseData(
licenses = R.raw.third_party_licenses,
metadata = R.raw.third_party_license_metadata,
)
override fun onResume() {
super.onResume()
val appName = getString(R.string.app_name)
val pageTitle = getString(R.string.open_source_licenses_title, appName)
showToolbar(pageTitle)
}
}