From ca2c5de5e0317a5aae063da01a73c509eb5e3449 Mon Sep 17 00:00:00 2001 From: Kofua <1638183271zjn@gmail.com> Date: Sat, 13 Jul 2024 18:38:09 +0800 Subject: [PATCH] fix: Setting backup preference title In Simplified Chinese strings, `notification_settings_preferences_category` means "tweet", not "Preferences", so replace to `settings_notification_pref_item_title`. --- .../integrations/twitter/settings/SettingsFragment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/app/revanced/integrations/twitter/settings/SettingsFragment.java b/app/src/main/java/app/revanced/integrations/twitter/settings/SettingsFragment.java index f900e92f06..1d277dfb1c 100644 --- a/app/src/main/java/app/revanced/integrations/twitter/settings/SettingsFragment.java +++ b/app/src/main/java/app/revanced/integrations/twitter/settings/SettingsFragment.java @@ -486,7 +486,7 @@ public void onCreate(@Nullable Bundle savedInstanceState) { LegacyTwitterPreferenceCategory backupPref = preferenceCategory(strRes("piko_title_backup"), screen); backupPref.addPreference( buttonPreference( - StringRef.str("piko_pref_export",strRes("notification_settings_preferences_category")), + StringRef.str("piko_pref_export",strRes("settings_notification_pref_item_title")), "", Settings.EXPORT_PREF.key ) @@ -500,7 +500,7 @@ public void onCreate(@Nullable Bundle savedInstanceState) { ); backupPref.addPreference( buttonPreference( - StringRef.str("piko_pref_import",strRes("notification_settings_preferences_category")), + StringRef.str("piko_pref_import",strRes("settings_notification_pref_item_title")), strRes("piko_pref_app_restart_rec"), Settings.IMPORT_PREF.key ) @@ -515,7 +515,7 @@ public void onCreate(@Nullable Bundle savedInstanceState) { backupPref.addPreference( buttonPreference( - strRes("delete")+": "+strRes("notification_settings_preferences_category"), + strRes("delete")+": "+strRes("settings_notification_pref_item_title"), "", Settings.RESET_PREF.key ) @@ -730,4 +730,4 @@ private static void setSetPref(String key, Set val) { } //end -} \ No newline at end of file +}