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
package org.mozilla.focus.widget
import android.content.Context
import android.util.AttributeSet
import androidx.preference.Preference
import org.mozilla.focus.R
class MozillaPreference @JvmOverloads constructor(
context: Context,
attrs: AttributeSet?,
defStyleAttr: Int = 0,
) : Preference(context, attrs, defStyleAttr) {
init {
val appName = getContext().resources.getString(R.string.app_name)
val summary = getContext().resources.getString(R.string.preference_mozilla_summary, appName)
setSummary(summary)
}
}