mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
873 B
Kotlin
25 lines
873 B
Kotlin
package org.tasks.preferences.fragments
|
|
|
|
import android.os.Bundle
|
|
import androidx.appcompat.content.res.AppCompatResources
|
|
import dagger.hilt.android.AndroidEntryPoint
|
|
import org.tasks.R
|
|
import org.tasks.injection.InjectingPreferenceFragment
|
|
import org.tasks.preferences.IconPreference
|
|
|
|
@AndroidEntryPoint
|
|
class TaskEditPreferences : InjectingPreferenceFragment() {
|
|
|
|
override fun getPreferenceXml() = R.xml.preferences_task_edit
|
|
|
|
override suspend fun setupPreferences(savedInstanceState: Bundle?) {
|
|
(findPreference(R.string.customize_edit_screen) as IconPreference).apply {
|
|
drawable = AppCompatResources.getDrawable(
|
|
requireContext(),
|
|
R.drawable.ic_keyboard_arrow_right_24px
|
|
)?.mutate()
|
|
tint = context.getColor(R.color.icon_tint_with_alpha)
|
|
iconVisible = true
|
|
}
|
|
}
|
|
} |