mirror of https://github.com/TeamNewPipe/NewPipe
20 lines
641 B
Kotlin
20 lines
641 B
Kotlin
package org.schabi.newpipe.settings
|
|
|
|
import android.os.Build
|
|
import android.os.Bundle
|
|
import androidx.preference.Preference
|
|
import org.schabi.newpipe.R
|
|
|
|
class NotificationSettingsFragment : BasePreferenceFragment() {
|
|
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
|
|
addPreferencesFromResourceRegistry()
|
|
|
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
|
|
val colorizePref: Preference? = findPreference(getString(R.string.notification_colorize_key))
|
|
colorizePref?.let {
|
|
preferenceScreen.removePreference(it)
|
|
}
|
|
}
|
|
}
|
|
}
|