From 4d78f3993e2e7b227833647fabc47c570a3a54d2 Mon Sep 17 00:00:00 2001 From: Super12138 <70494801+Super12138@users.noreply.github.com> Date: Sat, 8 Feb 2025 21:18:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=9A=E4=BD=99=E7=9A=84=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/cn/super12138/todo/logic/model/ContrastLevel.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/cn/super12138/todo/logic/model/ContrastLevel.kt b/app/src/main/kotlin/cn/super12138/todo/logic/model/ContrastLevel.kt index 09fd77d..3943096 100644 --- a/app/src/main/kotlin/cn/super12138/todo/logic/model/ContrastLevel.kt +++ b/app/src/main/kotlin/cn/super12138/todo/logic/model/ContrastLevel.kt @@ -1,8 +1,5 @@ package cn.super12138.todo.logic.model -import android.content.Context -import cn.super12138.todo.R - enum class ContrastLevel(val value: Float) { VeryLow(-1f), Low(-0.5f), @@ -10,7 +7,7 @@ enum class ContrastLevel(val value: Float) { Medium(0.5f), High(1f); - fun getDisplayName(context: Context): String { + /*fun getDisplayName(context: Context): String { val resId = when (this) { VeryLow -> R.string.contrast_very_low Low -> R.string.contrast_low @@ -19,7 +16,7 @@ enum class ContrastLevel(val value: Float) { High -> R.string.contrast_very_high } return context.getString(resId) - } + }*/ companion object { fun fromFloat(float: Float): ContrastLevel {