From 95db18de9a0def9f743393ca6d52509dfb62c147 Mon Sep 17 00:00:00 2001 From: X1nto Date: Sat, 2 May 2020 19:55:34 +0400 Subject: [PATCH] removed theme settings for android 6 and lower --- app/src/main/AndroidManifest.xml | 3 +-- .../manager/ui/fragments/SettingsFragment.kt | 9 +++++++ app/src/main/res/xml/preferences.xml | 26 +++++-------------- app/src/main/res/xml/theme_preference.xml | 21 +++++++++++++++ 4 files changed, 37 insertions(+), 22 deletions(-) create mode 100644 app/src/main/res/xml/theme_preference.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 1abbdfe7..a2845d44 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -31,8 +31,7 @@ + android:label="@string/app_name" /> = Build.VERSION_CODES.N) { + setPreferencesFromResource(R.xml.theme_preference, rootKey) + } + activity?.title = getString(R.string.title_settings) setHasOptionsMenu(true) diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 79906cc6..8ebdbf29 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -3,35 +3,21 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> - - - - - - - - + + + \ No newline at end of file diff --git a/app/src/main/res/xml/theme_preference.xml b/app/src/main/res/xml/theme_preference.xml new file mode 100644 index 00000000..c0c4c0ea --- /dev/null +++ b/app/src/main/res/xml/theme_preference.xml @@ -0,0 +1,21 @@ + + + + + + + + + + \ No newline at end of file