Skip to content

Commit 4351522

Browse files
committed
v1.1.71: fix privacy toggle, SAF export, dictionary updates
- Fix swipe data collection toggle not working (PrivacyManager now reads from main prefs) - SAF file picker for swipe data export buttons - Added cleverkeys/tribixbite to dictionary, removed ashok - Default neural_max_length reduced to 15 — claude-opus-4-5-20251101
1 parent f82ab19 commit 4351522

5 files changed

Lines changed: 23 additions & 5 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ dependencies {
5050
// UPDATE ONLY THESE THREE VALUES FOR A NEW RELEASE:
5151
ext.VERSION_MAJOR = 1
5252
ext.VERSION_MINOR = 1
53-
ext.VERSION_PATCH = 70
53+
ext.VERSION_PATCH = 71
5454
// =============================================================================
5555
// DERIVED VALUES (auto-calculated, do not edit):
5656
// - versionCode = MAJOR*10000 + MINOR*100 + PATCH
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
• SAF file picker for swipe data export (saves anywhere)
2+
• Added "cleverkeys" and "tribixbite" to dictionary
3+
• Fixed swipe data collection toggle not working
4+
• Default max word length reduced to 15 characters
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
• SAF file picker for swipe data export (saves anywhere)
2+
• Added "cleverkeys" and "tribixbite" to dictionary
3+
• Fixed swipe data collection toggle not working
4+
• Default max word length reduced to 15 characters
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
• SAF file picker for swipe data export (saves anywhere)
2+
• Added "cleverkeys" and "tribixbite" to dictionary
3+
• Fixed swipe data collection toggle not working
4+
• Default max word length reduced to 15 characters

src/main/kotlin/tribixbite/cleverkeys/PrivacyManager.kt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,15 @@ import java.util.Date
3636
*/
3737
class PrivacyManager(private val context: Context) {
3838

39+
// Privacy-specific settings (consent, anonymization, etc.)
3940
private val prefs: SharedPreferences = context.getSharedPreferences(
4041
"privacy_settings",
4142
Context.MODE_PRIVATE
4243
)
4344

45+
// Main app preferences (where SettingsActivity stores collection toggles)
46+
private val mainPrefs: SharedPreferences = DirectBootAwarePreferences.get_shared_preferences(context)
47+
4448
companion object {
4549
private const val TAG = "PrivacyManager"
4650

@@ -173,18 +177,20 @@ class PrivacyManager(private val context: Context) {
173177
}
174178

175179
/**
176-
* Check if specific data collection type is allowed
180+
* Check if specific data collection type is allowed.
181+
* Reads from main app preferences where SettingsActivity stores the toggles.
177182
*/
178183
fun canCollectSwipeData(): Boolean {
179-
return hasConsent() && prefs.getBoolean(KEY_COLLECT_SWIPE_DATA, false)
184+
// Read from main prefs using the key that SettingsActivity uses
185+
return hasConsent() && mainPrefs.getBoolean("privacy_collect_swipe", Defaults.PRIVACY_COLLECT_SWIPE)
180186
}
181187

182188
fun canCollectPerformanceData(): Boolean {
183-
return hasConsent() && prefs.getBoolean(KEY_COLLECT_PERFORMANCE_DATA, false)
189+
return hasConsent() && mainPrefs.getBoolean("privacy_collect_performance", Defaults.PRIVACY_COLLECT_PERFORMANCE)
184190
}
185191

186192
fun canCollectErrorLogs(): Boolean {
187-
return hasConsent() && prefs.getBoolean(KEY_COLLECT_ERROR_LOGS, false)
193+
return hasConsent() && mainPrefs.getBoolean("privacy_collect_errors", Defaults.PRIVACY_COLLECT_ERRORS)
188194
}
189195

190196
/**

0 commit comments

Comments
 (0)