From 349862aa55e9649f1b9eca16bce7238ab8c6be54 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 2 Jun 2022 18:07:09 +0200 Subject: [PATCH] fixes --- .../com/github/libretube/SettingsActivity.kt | 8 ++--- app/src/main/res/layout/fragment_library.xml | 36 +++++++++++++------ 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/com/github/libretube/SettingsActivity.kt b/app/src/main/java/com/github/libretube/SettingsActivity.kt index 3e41ff8e6..12c73c07c 100644 --- a/app/src/main/java/com/github/libretube/SettingsActivity.kt +++ b/app/src/main/java/com/github/libretube/SettingsActivity.kt @@ -29,13 +29,13 @@ import androidx.preference.PreferenceFragmentCompat import androidx.preference.PreferenceManager import com.google.android.material.color.DynamicColors import com.google.android.material.dialog.MaterialAlertDialogBuilder +import org.json.JSONObject +import org.json.JSONTokener +import retrofit2.HttpException import java.io.IOException import java.io.InputStream import java.util.zip.ZipEntry import java.util.zip.ZipInputStream -import org.json.JSONObject -import org.json.JSONTokener -import retrofit2.HttpException private var isCurrentViewMainSettings = true private var requireMainActivityRestart = false @@ -172,7 +172,7 @@ class SettingsActivity : val login = findPreference("login_register") login?.setOnPreferenceClickListener { - + requireMainActivityRestart = true val newFragment = LoginDialog() newFragment.show(childFragmentManager, "Login") true diff --git a/app/src/main/res/layout/fragment_library.xml b/app/src/main/res/layout/fragment_library.xml index b9f75dea1..d205de1a2 100644 --- a/app/src/main/res/layout/fragment_library.xml +++ b/app/src/main/res/layout/fragment_library.xml @@ -1,6 +1,5 @@ - -