AI text improvements is active by default
This commit is contained in:
@@ -38,7 +38,7 @@ data class UiSettings(
|
|||||||
val dontAskForNotificationPermissions: Boolean = false,
|
val dontAskForNotificationPermissions: Boolean = false,
|
||||||
val featureSet: FeatureSetType = FeatureSetType.SIMPLIFIED,
|
val featureSet: FeatureSetType = FeatureSetType.SIMPLIFIED,
|
||||||
val gallerySet: ProfileGalleryType = ProfileGalleryType.CLASSIC,
|
val gallerySet: ProfileGalleryType = ProfileGalleryType.CLASSIC,
|
||||||
val automaticallyProposeAiImprovements: BooleanType = BooleanType.NEVER,
|
val automaticallyProposeAiImprovements: BooleanType = BooleanType.ALWAYS,
|
||||||
)
|
)
|
||||||
|
|
||||||
enum class ThemeType(
|
enum class ThemeType(
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class UiSettingsFlow(
|
|||||||
val dontAskForNotificationPermissions: MutableStateFlow<Boolean> = MutableStateFlow(false),
|
val dontAskForNotificationPermissions: MutableStateFlow<Boolean> = MutableStateFlow(false),
|
||||||
val featureSet: MutableStateFlow<FeatureSetType> = MutableStateFlow(FeatureSetType.SIMPLIFIED),
|
val featureSet: MutableStateFlow<FeatureSetType> = MutableStateFlow(FeatureSetType.SIMPLIFIED),
|
||||||
val gallerySet: MutableStateFlow<ProfileGalleryType> = MutableStateFlow(ProfileGalleryType.CLASSIC),
|
val gallerySet: MutableStateFlow<ProfileGalleryType> = MutableStateFlow(ProfileGalleryType.CLASSIC),
|
||||||
val automaticallyProposeAiImprovements: MutableStateFlow<BooleanType> = MutableStateFlow(BooleanType.NEVER),
|
val automaticallyProposeAiImprovements: MutableStateFlow<BooleanType> = MutableStateFlow(BooleanType.ALWAYS),
|
||||||
) {
|
) {
|
||||||
val listOfFlows: List<Flow<Any?>> =
|
val listOfFlows: List<Flow<Any?>> =
|
||||||
listOf<Flow<Any?>>(
|
listOf<Flow<Any?>>(
|
||||||
|
|||||||
+1
-1
@@ -121,7 +121,7 @@ class UiSharedPreferences(
|
|||||||
dontAskForNotificationPermissions = preferences[UI_DONT_ASK_FOR_NOTIFICATION_PERMISSIONS] ?: false,
|
dontAskForNotificationPermissions = preferences[UI_DONT_ASK_FOR_NOTIFICATION_PERMISSIONS] ?: false,
|
||||||
featureSet = preferences[UI_FEATURE_SET]?.let { FeatureSetType.valueOf(it) } ?: FeatureSetType.SIMPLIFIED,
|
featureSet = preferences[UI_FEATURE_SET]?.let { FeatureSetType.valueOf(it) } ?: FeatureSetType.SIMPLIFIED,
|
||||||
gallerySet = preferences[UI_GALLERY_SET]?.let { ProfileGalleryType.valueOf(it) } ?: ProfileGalleryType.CLASSIC,
|
gallerySet = preferences[UI_GALLERY_SET]?.let { ProfileGalleryType.valueOf(it) } ?: ProfileGalleryType.CLASSIC,
|
||||||
automaticallyProposeAiImprovements = preferences[UI_PROPOSE_AI_IMPROVEMENTS]?.let { BooleanType.valueOf(it) } ?: BooleanType.NEVER,
|
automaticallyProposeAiImprovements = preferences[UI_PROPOSE_AI_IMPROVEMENTS]?.let { BooleanType.valueOf(it) } ?: BooleanType.ALWAYS,
|
||||||
)
|
)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
if (e is CancellationException) throw e
|
if (e is CancellationException) throw e
|
||||||
|
|||||||
@@ -2201,8 +2201,8 @@
|
|||||||
<string name="relay_leave_request">Relay leave request</string>
|
<string name="relay_leave_request">Relay leave request</string>
|
||||||
|
|
||||||
<string name="ai_writing_help">AI Writing Help</string>
|
<string name="ai_writing_help">AI Writing Help</string>
|
||||||
<string name="ai_writing_setting_title">Propose AI text improvements</string>
|
<string name="ai_writing_setting_title">Propose text improvements</string>
|
||||||
<string name="ai_writing_setting_description">Show writing recommendations (on-device)</string>
|
<string name="ai_writing_setting_description">Uses an on-device AI model to propose text corrections and tone changes.</string>
|
||||||
<string name="ai_writing_use_this">Use This</string>
|
<string name="ai_writing_use_this">Use This</string>
|
||||||
<string name="ai_writing_dismiss">Dismiss</string>
|
<string name="ai_writing_dismiss">Dismiss</string>
|
||||||
<string name="ai_tone_correct">Correct</string>
|
<string name="ai_tone_correct">Correct</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user