diff --git a/app/src/main/java/com/deniscerri/ytdlnis/ui/downloadcard/FormatSelectionBottomSheetDialog.kt b/app/src/main/java/com/deniscerri/ytdlnis/ui/downloadcard/FormatSelectionBottomSheetDialog.kt index 01ac225b..bc4f490c 100644 --- a/app/src/main/java/com/deniscerri/ytdlnis/ui/downloadcard/FormatSelectionBottomSheetDialog.kt +++ b/app/src/main/java/com/deniscerri/ytdlnis/ui/downloadcard/FormatSelectionBottomSheetDialog.kt @@ -158,14 +158,16 @@ class FormatSelectionBottomSheetDialog(private val items: List, p shimmers.visibility = View.GONE shimmers.stopShimmer() }catch (e: Exception){ - refreshBtn.isEnabled = true - refreshBtn.text = getString(R.string.update_formats) - linearLayout.visibility = View.VISIBLE - shimmers.visibility = View.GONE - shimmers.stopShimmer() + runCatching { + refreshBtn.isEnabled = true + refreshBtn.text = getString(R.string.update_formats) + linearLayout.visibility = View.VISIBLE + shimmers.visibility = View.GONE + shimmers.stopShimmer() - e.printStackTrace() - Toast.makeText(context, getString(R.string.error_updating_formats), Toast.LENGTH_SHORT).show() + e.printStackTrace() + Toast.makeText(context, getString(R.string.error_updating_formats), Toast.LENGTH_SHORT).show() + } } } } diff --git a/app/src/main/res/xml/appearance_preferences.xml b/app/src/main/res/xml/appearance_preferences.xml index 938374df..f7cf50de 100644 --- a/app/src/main/res/xml/appearance_preferences.xml +++ b/app/src/main/res/xml/appearance_preferences.xml @@ -36,4 +36,21 @@ android:key="high_contrast" app:summary="@string/pure_theme_summary" app:title="@string/high_contrast" /> + + + + + \ No newline at end of file diff --git a/app/src/main/res/xml/downloading_preferences.xml b/app/src/main/res/xml/downloading_preferences.xml index 15fbe1a7..495e8cb4 100644 --- a/app/src/main/res/xml/downloading_preferences.xml +++ b/app/src/main/res/xml/downloading_preferences.xml @@ -54,23 +54,6 @@ app:summary="@string/preferred_search_engine_summary" app:title="@string/preferred_search_engine" /> - - - - -