fix: 多余的方法
This commit is contained in:
parent
5c6ac565a3
commit
4d78f3993e
1 changed files with 2 additions and 5 deletions
|
|
@ -1,8 +1,5 @@
|
||||||
package cn.super12138.todo.logic.model
|
package cn.super12138.todo.logic.model
|
||||||
|
|
||||||
import android.content.Context
|
|
||||||
import cn.super12138.todo.R
|
|
||||||
|
|
||||||
enum class ContrastLevel(val value: Float) {
|
enum class ContrastLevel(val value: Float) {
|
||||||
VeryLow(-1f),
|
VeryLow(-1f),
|
||||||
Low(-0.5f),
|
Low(-0.5f),
|
||||||
|
|
@ -10,7 +7,7 @@ enum class ContrastLevel(val value: Float) {
|
||||||
Medium(0.5f),
|
Medium(0.5f),
|
||||||
High(1f);
|
High(1f);
|
||||||
|
|
||||||
fun getDisplayName(context: Context): String {
|
/*fun getDisplayName(context: Context): String {
|
||||||
val resId = when (this) {
|
val resId = when (this) {
|
||||||
VeryLow -> R.string.contrast_very_low
|
VeryLow -> R.string.contrast_very_low
|
||||||
Low -> R.string.contrast_low
|
Low -> R.string.contrast_low
|
||||||
|
|
@ -19,7 +16,7 @@ enum class ContrastLevel(val value: Float) {
|
||||||
High -> R.string.contrast_very_high
|
High -> R.string.contrast_very_high
|
||||||
}
|
}
|
||||||
return context.getString(resId)
|
return context.getString(resId)
|
||||||
}
|
}*/
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun fromFloat(float: Float): ContrastLevel {
|
fun fromFloat(float: Float): ContrastLevel {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue