时钟总开关绑定事件

This commit is contained in:
乌堆小透明
2022-03-08 16:05:14 +08:00
parent 0665c4553b
commit 52807ea57d
2 changed files with 15 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,14 @@
package com.lt2333.simplicitytools.util
import android.annotation.SuppressLint
import android.content.Context
object SPUtils {
@SuppressLint("WorldReadableFiles")
fun getBoolean(context: Context, key: String, defValue: Boolean): Boolean {
val pref = context.getSharedPreferences("config",Context.MODE_WORLD_READABLE)
return pref.getBoolean(key, defValue)
}
}