From 821479561eb01d3ce8d635465cd0783adc27cb98 Mon Sep 17 00:00:00 2001 From: X1nto Date: Wed, 6 May 2020 01:33:40 +0400 Subject: [PATCH] crash fix by reverting changes --- .../manager/ui/fragments/SettingsFragment.kt | 4 +- app/src/main/res/layout/activity_main.xml | 27 ++++++---- .../main/res/layout/fragment_update_check.xml | 10 ++-- .../fragment_vanced_language_selection.xml | 2 +- .../fragment_vanced_theme_selection.xml | 6 +-- .../fragment_vanced_variant_selection.xml | 7 ++- .../res/layout/include_about_app_devs.xml | 4 +- .../main/res/layout/include_about_header.xml | 4 +- .../main/res/layout/include_about_sources.xml | 12 ++--- .../res/layout/include_about_vanced_devs.xml | 4 +- .../main/res/layout/include_changelogs.xml | 4 +- .../layout/include_language_scrollview.xml | 52 +++++++++---------- app/src/main/res/layout/include_microg.xml | 4 +- .../main/res/layout/include_network_error.xml | 4 +- .../main/res/layout/include_useful_links.xml | 4 +- app/src/main/res/layout/include_vanced.xml | 4 +- .../main/res/layout/include_vanced_medias.xml | 12 ++--- app/src/main/res/values-night/themes.xml | 2 +- app/src/main/res/values/themes.xml | 2 +- 19 files changed, 88 insertions(+), 80 deletions(-) diff --git a/app/src/main/java/com/vanced/manager/ui/fragments/SettingsFragment.kt b/app/src/main/java/com/vanced/manager/ui/fragments/SettingsFragment.kt index 08011ab6..1d0e86e1 100644 --- a/app/src/main/java/com/vanced/manager/ui/fragments/SettingsFragment.kt +++ b/app/src/main/java/com/vanced/manager/ui/fragments/SettingsFragment.kt @@ -16,11 +16,11 @@ class SettingsFragment : PreferenceFragmentCompat() { //Fuck Android 6 android 5 users! Because theme is not working //we can't display preference for them. //They should've upgraded to something newer - /*if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) { + if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) { val prefScreen: PreferenceScreen? = findPreference("prefScreen") val prefCategory: PreferenceCategory? = findPreference("interface_category") prefScreen?.removePreference(prefCategory) - }*/ + } activity?.title = getString(R.string.title_settings) setHasOptionsMenu(true) diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index f4894d76..d1691964 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -12,18 +12,27 @@ android:name="androidx.navigation.fragment.NavHostFragment" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_below="@id/home_toolbar" + android:layout_below="@id/home_appbar" app:defaultNavHost="true" app:navGraph="@navigation/mobile_navigation"/> - + android:layout_height="wrap_content"> + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_update_check.xml b/app/src/main/res/layout/fragment_update_check.xml index 66f7aba2..9f8bad76 100644 --- a/app/src/main/res/layout/fragment_update_check.xml +++ b/app/src/main/res/layout/fragment_update_check.xml @@ -1,5 +1,5 @@ - -