Commit 60eccdd8 authored by Mygod's avatar Mygod

Fix up action from ScannerActivity

parent 24cfe393
......@@ -128,6 +128,11 @@ class ScannerActivity : AppCompatActivity(), BarcodeRetriever {
else -> false
}
/**
* See also: https://stackoverflow.com/a/31350642/2245107
*/
override fun shouldUpRecreateTask(targetIntent: Intent?) = super.shouldUpRecreateTask(targetIntent) || isTaskRoot
private fun startImport(manual: Boolean = false) = startActivityForResult(Intent(Intent.ACTION_GET_CONTENT).apply {
addCategory(Intent.CATEGORY_OPENABLE)
type = "image/*"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment