From 881eadc9577137da09645e6724de4aa627d1140e Mon Sep 17 00:00:00 2001 From: Page Asgardius Date: Thu, 29 Dec 2022 19:47:01 -0700 Subject: [PATCH] new release --- app/build.gradle | 4 ++-- app/src/main/java/asgardius/page/s3manager/BucketSelect.java | 4 +++- app/src/main/java/asgardius/page/s3manager/ObjectSelect.java | 4 +++- fastlane/metadata/android/en-US/changelogs/{53.txt => 54.txt} | 0 4 files changed, 8 insertions(+), 4 deletions(-) rename fastlane/metadata/android/en-US/changelogs/{53.txt => 54.txt} (100%) diff --git a/app/build.gradle b/app/build.gradle index 7bd41e4..b524641 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "asgardius.page.s3manager" minSdk 23 targetSdk 33 - versionCode 53 - versionName "0.5.1" + versionCode 54 + versionName "0.5.2" setProperty("archivesBaseName", "s3-manager-$versionName") testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/app/src/main/java/asgardius/page/s3manager/BucketSelect.java b/app/src/main/java/asgardius/page/s3manager/BucketSelect.java index 81bcd00..c85a0da 100644 --- a/app/src/main/java/asgardius/page/s3manager/BucketSelect.java +++ b/app/src/main/java/asgardius/page/s3manager/BucketSelect.java @@ -364,6 +364,8 @@ public class BucketSelect extends AppCompatActivity { ClipboardManager clipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); ClipData clip = ClipData.newPlainText("name", name); clipboard.setPrimaryClip(clip); - Toast.makeText(getApplicationContext(),getResources().getString(R.string.copy_name_ok), Toast.LENGTH_SHORT).show(); + if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.S_V2) { + Toast.makeText(getApplicationContext(),getResources().getString(R.string.copy_name_ok), Toast.LENGTH_SHORT).show(); + } } } \ No newline at end of file diff --git a/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java b/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java index bcbd0a1..d20d6f6 100644 --- a/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java +++ b/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java @@ -685,6 +685,8 @@ public class ObjectSelect extends AppCompatActivity { clip = ClipData.newPlainText("name", name); } clipboard.setPrimaryClip(clip); - Toast.makeText(getApplicationContext(),getResources().getString(R.string.copy_name_ok), Toast.LENGTH_SHORT).show(); + if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.S_V2) { + Toast.makeText(getApplicationContext(),getResources().getString(R.string.copy_name_ok), Toast.LENGTH_SHORT).show(); + } } } \ No newline at end of file diff --git a/fastlane/metadata/android/en-US/changelogs/53.txt b/fastlane/metadata/android/en-US/changelogs/54.txt similarity index 100% rename from fastlane/metadata/android/en-US/changelogs/53.txt rename to fastlane/metadata/android/en-US/changelogs/54.txt