diff --git a/app/build.gradle b/app/build.gradle index a6db796229..6d45ec3f81 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId "org.ole.planet.myplanet" minSdkVersion 26 targetSdkVersion 34 - versionCode 2137 - versionName "0.21.37" + versionCode 2138 + versionName "0.21.38" ndkVersion '21.3.6528147' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true diff --git a/app/src/main/java/org/ole/planet/myplanet/base/BaseContainerFragment.kt b/app/src/main/java/org/ole/planet/myplanet/base/BaseContainerFragment.kt index f9b8db427b..999d0b9662 100644 --- a/app/src/main/java/org/ole/planet/myplanet/base/BaseContainerFragment.kt +++ b/app/src/main/java/org/ole/planet/myplanet/base/BaseContainerFragment.kt @@ -77,9 +77,7 @@ abstract class BaseContainerFragment : BaseResourceFragment() { val url = Utilities.getUrl(library) if (!FileUtils.checkFileExist(url) && !TextUtils.isEmpty(url)) urls.add(url) } - if (urls.isNotEmpty()) startDownload(urls) else Utilities.toast( - activity, getString(R.string.no_images_to_download) - ) + if (urls.isNotEmpty()) startDownload(urls) } fun initRatingView(type: String?, id: String?, title: String?, listener: OnRatingChangeListener?) { timesRated = requireView().findViewById(R.id.times_rated) diff --git a/app/src/main/java/org/ole/planet/myplanet/base/BaseContainerFragment.kt.lite b/app/src/main/java/org/ole/planet/myplanet/base/BaseContainerFragment.kt.lite index 2b983ca27f..385b2c0c8a 100644 --- a/app/src/main/java/org/ole/planet/myplanet/base/BaseContainerFragment.kt.lite +++ b/app/src/main/java/org/ole/planet/myplanet/base/BaseContainerFragment.kt.lite @@ -77,9 +77,7 @@ abstract class BaseContainerFragment : BaseResourceFragment() { val url = Utilities.getUrl(library) if (!FileUtils.checkFileExist(url) && !TextUtils.isEmpty(url)) urls.add(url) } - if (urls.isNotEmpty()) startDownload(urls) else Utilities.toast( - activity, getString(R.string.no_images_to_download) - ) + if (urls.isNotEmpty()) startDownload(urls) } fun initRatingView(type: String?, id: String?, title: String?, listener: OnRatingChangeListener?) { timesRated = requireView().findViewById(R.id.times_rated)