From 35eb97ac047d4c6b0c4c2dddd733ba0db0904563 Mon Sep 17 00:00:00 2001 From: Pavneet Singh Cheema <90737218+pavi38@users.noreply.github.com> Date: Mon, 27 Jan 2025 13:50:48 -0600 Subject: [PATCH] sync: smoother not found dark mode (fixes #5100) (#5128) Co-authored-by: dogi --- app/build.gradle | 4 ++-- .../java/org/ole/planet/myplanet/base/BaseResourceFragment.kt | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 6978fdb5b8..ecff15a254 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId "org.ole.planet.myplanet" minSdkVersion 26 targetSdkVersion 34 - versionCode 2240 - versionName "0.22.40" + versionCode 2241 + versionName "0.22.41" ndkVersion '21.3.6528147' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true diff --git a/app/src/main/java/org/ole/planet/myplanet/base/BaseResourceFragment.kt b/app/src/main/java/org/ole/planet/myplanet/base/BaseResourceFragment.kt index 9cd57e0149..c4bc33aab1 100644 --- a/app/src/main/java/org/ole/planet/myplanet/base/BaseResourceFragment.kt +++ b/app/src/main/java/org/ole/planet/myplanet/base/BaseResourceFragment.kt @@ -191,14 +191,13 @@ abstract class BaseResourceFragment : Fragment() { return } - resourceNotFoundDialog = AlertDialog.Builder(requireContext()) + resourceNotFoundDialog = AlertDialog.Builder(requireContext(), R.style.AlertDialogTheme) .setTitle(R.string.resource_not_found) .setMessage(R.string.resource_not_found_message) .setNegativeButton(R.string.close) { dialog, _ -> dialog.dismiss() } .create() - resourceNotFoundDialog?.setOnDismissListener { resourceNotFoundDialog = null }