diff app/src/main/java/com/bartsent/simpleresizer/EditImage.kt @ 3:21d2df45d350

Fix race condition.
author David Barts <n5jrn@me.com>
date Tue, 09 Feb 2021 08:56:00 -0800
parents 06825e49f7aa
children b6a217c850fb
line wrap: on
line diff
--- a/app/src/main/java/com/bartsent/simpleresizer/EditImage.kt	Sun Feb 07 21:08:34 2021 -0800
+++ b/app/src/main/java/com/bartsent/simpleresizer/EditImage.kt	Tue Feb 09 08:56:00 2021 -0800
@@ -10,6 +10,7 @@
 import android.os.Environment
 import android.provider.MediaStore
 import android.provider.OpenableColumns
+import android.util.Log
 import android.view.MenuItem
 import android.view.View
 import android.widget.EditText
@@ -36,6 +37,7 @@
         super.onCreate(savedInstanceState)
         binding = ActivityEditImageBinding.inflate(layoutInflater)
         setContentView(binding.root)
+        Log.d("EditImage", "onCreate called")
     }
 
     // Cribbed from: https://stackoverflow.com/questions/5568874/how-to-extract-the-file-name-from-uri-returned-from-intent-action-get-content
@@ -69,6 +71,7 @@
 
     override fun onResume() {
         super.onResume()
+        Log.d("EditImage", "onResume called")
 
         // Read the URI, die if we can't.
         val imageUri = intent?.data