mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
Include some experimental settings in rageshakes
Change-Id: I23e313089409df88518446720bdf69a6f112de4b
This commit is contained in:
parent
16f7cb4b8d
commit
5081f665ea
2 changed files with 28 additions and 0 deletions
|
@ -321,6 +321,8 @@ class BugReporter @Inject constructor(
|
|||
// More Schildi-specific fields
|
||||
val enabledDebugSettings = DbgUtil.ALL_PREFS.filter { DbgUtil.isDbgEnabled(it) }
|
||||
builder.addFormDataPart("enabledDebugSettings", enabledDebugSettings.joinToString())
|
||||
.addFormDataPart("experimentalSettingsEnabled", vectorPreferences.getEnabledExperimentalSettings().joinToString())
|
||||
.addFormDataPart("experimentalSettingsDisabled", vectorPreferences.getDisabledExperimentalSettings().joinToString())
|
||||
.addFormDataPart("reportTime", reportTime)
|
||||
.addFormDataPart("packageName", buildMeta.applicationId)
|
||||
// Device characteristics
|
||||
|
|
|
@ -346,6 +346,32 @@ class VectorPreferences @Inject constructor(
|
|||
|
||||
ShortcutsHandler.SHARED_PREF_KEY,
|
||||
)
|
||||
|
||||
// Pref keys to include in rageshake if enabled
|
||||
val EXPERIMENTAL_PREF_IF_TRUE = arrayOf(
|
||||
SETTINGS_LABS_RICH_TEXT_EDITOR_KEY,
|
||||
SETTINGS_ENABLE_RICH_TEXT_FORMATTING_KEY,
|
||||
SETTINGS_LABS_NEW_APP_LAYOUT_KEY,
|
||||
SETTINGS_LABS_NEW_SESSION_MANAGER_KEY,
|
||||
SETTINGS_LABS_DEFERRED_DM_KEY,
|
||||
)
|
||||
// Pref keys to include in rageshake if disabled
|
||||
val EXPERIMENTAL_PREF_IF_FALSE = arrayOf(
|
||||
SETTINGS_LABS_ENABLE_THREAD_MESSAGES,
|
||||
SETTINGS_LABS_DEFERRED_DM_KEY,
|
||||
)
|
||||
}
|
||||
|
||||
// SC rageshake extras
|
||||
fun getEnabledExperimentalSettings(): List<String> {
|
||||
return EXPERIMENTAL_PREF_IF_TRUE.filter {
|
||||
defaultPrefs.getBoolean(it, false)
|
||||
}
|
||||
}
|
||||
fun getDisabledExperimentalSettings(): List<String> {
|
||||
return EXPERIMENTAL_PREF_IF_FALSE.filterNot {
|
||||
defaultPrefs.getBoolean(it, true)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue