mirror of
https://github.com/ironfox-oss/IronFox.git
synced 2025-12-23 22:30:03 -05:00
fix: Include IronFox settings in the new Settings search feature
Signed-off-by: celenity <celenity@celenity.dev>
This commit is contained in:
27
patches/fenix-ironfox-settings-search.patch
Normal file
27
patches/fenix-ironfox-settings-search.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/settingssearch/DefaultFenixSettingsIndexer.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/settingssearch/DefaultFenixSettingsIndexer.kt
|
||||
index f8ca2b5076eef0..fa30f9b595d3a0 100644
|
||||
--- a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/settingssearch/DefaultFenixSettingsIndexer.kt
|
||||
+++ b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/settingssearch/DefaultFenixSettingsIndexer.kt
|
||||
@@ -332,6 +332,7 @@ class DefaultFenixSettingsIndexer(private val context: Context) : SettingsIndexe
|
||||
PreferenceFileInformation.TabsPreferences,
|
||||
PreferenceFileInformation.TrackingProtectionPreferences,
|
||||
PreferenceFileInformation.SaveLoginsPreferences,
|
||||
+ PreferenceFileInformation.IronFoxPreferences,
|
||||
)
|
||||
}
|
||||
}
|
||||
diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/settingssearch/PreferenceFileInformation.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/settingssearch/PreferenceFileInformation.kt
|
||||
index a2321f05f70ad7..f847dd0fec8c9e 100644
|
||||
--- a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/settingssearch/PreferenceFileInformation.kt
|
||||
+++ b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/settingssearch/PreferenceFileInformation.kt
|
||||
@@ -135,4 +135,10 @@ sealed class PreferenceFileInformation(
|
||||
topBreadcrumbResourceId = R.string.preferences_passwords_save_logins_2,
|
||||
fragmentId = R.id.savedLogins,
|
||||
)
|
||||
+
|
||||
+ object IronFoxPreferences : PreferenceFileInformation(
|
||||
+ xmlResourceId = R.xml.ironfox_preferences,
|
||||
+ topBreadcrumbResourceId = R.string.if_preferences,
|
||||
+ fragmentId = R.id.ironFoxSettingsFragment,
|
||||
+ )
|
||||
}
|
||||
@@ -737,6 +737,14 @@ patches:
|
||||
effect: "Users can conveniently enable/disable these features as needed to meet their needs, without needing to dig into advanced settings or the `about:config`."
|
||||
category: "User Interface"
|
||||
|
||||
- file: "fenix-ironfox-settings-search.patch"
|
||||
name: "IronFox Settings Search"
|
||||
description: "Allows users to search for IronFox-specific UI settings."
|
||||
reason: |
|
||||
To allow users to easily find IronFox UI settings, like they can with standard UI settings.
|
||||
effect: "Users can easily find and configure IronFox UI settings as desired."
|
||||
category: "User Interface"
|
||||
|
||||
- file: "gecko-ironfox-settings.patch"
|
||||
name: "IronFox Settings (Gecko)"
|
||||
description: "Adds support to Gecko for IronFox-specific preferences/UI settings to control various functionality."
|
||||
|
||||
Reference in New Issue
Block a user