diff --git a/app/src/main/java/com/github/libretube/ui/preferences/BackupRestoreSettings.kt b/app/src/main/java/com/github/libretube/ui/preferences/BackupRestoreSettings.kt index 7db39b5e8..11fb5359b 100644 --- a/app/src/main/java/com/github/libretube/ui/preferences/BackupRestoreSettings.kt +++ b/app/src/main/java/com/github/libretube/ui/preferences/BackupRestoreSettings.kt @@ -8,6 +8,7 @@ import androidx.activity.result.contract.ActivityResultContracts.CreateDocument import androidx.preference.Preference import com.github.libretube.R import com.github.libretube.obj.BackupFile +import com.github.libretube.ui.activities.SettingsActivity import com.github.libretube.ui.base.BasePreferenceFragment import com.github.libretube.ui.dialogs.BackupDialog import com.github.libretube.util.BackupHelper @@ -76,6 +77,9 @@ class BackupRestoreSettings : BasePreferenceFragment() { override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) { setPreferencesFromResource(R.xml.import_export_settings, rootKey) + val settingsActivity = activity as? SettingsActivity + settingsActivity?.changeTopBarText(getString(R.string.backup_restore)) + val importSubscriptions = findPreference("import_subscriptions") importSubscriptions?.setOnPreferenceClickListener { getSubscriptionsFile.launch("*/*") diff --git a/app/src/main/res/xml/instance_settings.xml b/app/src/main/res/xml/instance_settings.xml index 40fc7824e..c40b9e370 100644 --- a/app/src/main/res/xml/instance_settings.xml +++ b/app/src/main/res/xml/instance_settings.xml @@ -56,19 +56,4 @@ - - - - - - - - \ No newline at end of file