Files
Matewave/app/src/main/java/cc/skysparkle/matewave/settings/FeedbackSettings.kt
T
Claude 6ac5a582db Add app source for F-Droid release (v1.0.43)
Adds the full Android source tree with unit tests, fastlane store
metadata and the Gradle wrapper. The archive shipped without
gradle-wrapper.jar, so the official Gradle 9.7.1 wrapper jar is
included to make ./gradlew work from a fresh clone. .gitignore now
also excludes build output and keystores. README gains build
instructions and an updated structure tree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015g6ECVSKcBG8CJPrqC3G5o
2026-10-06 18:23:20 +00:00

17 lines
515 B
Kotlin

package cc.skysparkle.matewave.settings
import android.content.Context
class FeedbackSettings(context: Context) {
private val prefs = context.applicationContext.getSharedPreferences(PREFS, Context.MODE_PRIVATE)
var vibrationEnabled: Boolean
get() = prefs.getBoolean(KEY_VIBRATION, true)
set(value) { prefs.edit().putBoolean(KEY_VIBRATION, value).apply() }
private companion object {
const val PREFS = "feedback_settings"
const val KEY_VIBRATION = "vibration"
}
}