From c3dd203b5ad0117c6b60346c5809508610ad55cd Mon Sep 17 00:00:00 2001 From: X1nto Date: Sun, 24 May 2020 11:57:48 +0400 Subject: [PATCH] debugging --- app/app.iml | 10 ++++---- .../manager/core/fragments/ThemeInstall.kt | 3 ++- .../fragment_vanced_theme_selection.xml | 2 ++ .../layout/include_language_scrollview.xml | 24 +++++++++++++++++++ 4 files changed, 33 insertions(+), 6 deletions(-) diff --git a/app/app.iml b/app/app.iml index f2e7da7a..6ebe3fd0 100644 --- a/app/app.iml +++ b/app/app.iml @@ -72,15 +72,15 @@ - + - + - - - + + + diff --git a/app/src/main/java/com/vanced/manager/core/fragments/ThemeInstall.kt b/app/src/main/java/com/vanced/manager/core/fragments/ThemeInstall.kt index c8b3b61d..db37efdc 100644 --- a/app/src/main/java/com/vanced/manager/core/fragments/ThemeInstall.kt +++ b/app/src/main/java/com/vanced/manager/core/fragments/ThemeInstall.kt @@ -19,8 +19,9 @@ open class ThemeInstall : BaseFragment() { val selectedThemeId = themeGroup.checkedRadioButtonId val selectedButton = view.findViewById(selectedThemeId) + nextButton.setOnClickListener { - Toast.makeText(requireContext(), selectedButton.id.toString(), Toast.LENGTH_SHORT).show() + Toast.makeText(requireContext(), selectedButton.tag.toString(), Toast.LENGTH_SHORT).show() //downloadSplit("theme", selectedThemeId.toString(), false, loadBar, R.id.toInstallVariantFragment) } } diff --git a/app/src/main/res/layout/fragment_vanced_theme_selection.xml b/app/src/main/res/layout/fragment_vanced_theme_selection.xml index d74dbd9d..c87a56ee 100644 --- a/app/src/main/res/layout/fragment_vanced_theme_selection.xml +++ b/app/src/main/res/layout/fragment_vanced_theme_selection.xml @@ -32,6 +32,7 @@ android:layout_height="wrap_content" android:textSize="18sp" android:text="@string/install_light_dark" + android:tag="dark" android:fontFamily="@font/exo_semibold"/> diff --git a/app/src/main/res/layout/include_language_scrollview.xml b/app/src/main/res/layout/include_language_scrollview.xml index 04e0b6ac..ac00ddd9 100644 --- a/app/src/main/res/layout/include_language_scrollview.xml +++ b/app/src/main/res/layout/include_language_scrollview.xml @@ -19,6 +19,7 @@ android:layout_height="wrap_content" android:fontFamily="@font/exo_semibold" android:text="English (default)" + android:tag="en" android:textSize="18sp" />