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
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user