From 7f43a5c5d2991e94dee4d97ee4f42c403283869e Mon Sep 17 00:00:00 2001 From: dece Date: Wed, 17 Mar 2021 20:33:27 +0100 Subject: [PATCH] gradle: bump to 1.1 --- app/build.gradle | 8 ++++---- .../java/io/lowrespalmtree/harvestdawn/MainActivity.kt | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index e05d9c3..89f73ef 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "io.lowrespalmtree.harvestdawn" minSdkVersion 24 targetSdkVersion 29 - versionCode 1 - versionName "1.0" + versionCode 2 + versionName "1.1" } buildTypes { @@ -36,8 +36,8 @@ dependencies { implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.3.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' - implementation 'androidx.navigation:navigation-fragment-ktx:2.3.3' - implementation 'androidx.navigation:navigation-ui-ktx:2.3.3' + implementation 'androidx.navigation:navigation-fragment-ktx:2.3.4' + implementation 'androidx.navigation:navigation-ui-ktx:2.3.4' implementation 'com.arthenica:mobile-ffmpeg-min-gpl:4.3.2' } \ No newline at end of file diff --git a/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt b/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt index 5ab39fa..45f8af3 100644 --- a/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt +++ b/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt @@ -43,7 +43,7 @@ class MainActivity : AppCompatActivity() { ensureWritePermission() - findViewById(R.id.fab).setOnClickListener { _ -> + findViewById(R.id.fab).setOnClickListener { if (hasWritePermission) { openCamera() } else { @@ -294,8 +294,8 @@ class MainActivity : AppCompatActivity() { return false val currentFile = File(currentVideoPath) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { - val store = MediaStore.Video.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); - val videoDetails = ContentValues(); + val store = MediaStore.Video.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY) + val videoDetails = ContentValues() videoDetails.put(MediaStore.Video.Media.IS_PENDING, 1) val uri = contentResolver.insert(store, videoDetails) ?: return false .also { toast("Could not put video to media store.") } @@ -309,7 +309,7 @@ class MainActivity : AppCompatActivity() { videoDetails.clear() videoDetails.put(MediaStore.Video.Media.IS_PENDING, 0) contentResolver.update(uri, videoDetails, null, null) - currentVideoUri = uri; + currentVideoUri = uri toast("Video saved to media store!") } else { val externalDir = File(