1
0
Fork 0
mirror of https://git.sr.ht/~oppen/ariane synced 2024-12-26 01:38:40 +00:00

file download...

This commit is contained in:
Jonathan Fisher 2020-11-13 15:39:21 +00:00
parent 3ff4758bbe
commit 838dfcc1da

View file

@ -360,7 +360,7 @@ class GemActivity : AppCompatActivity() {
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data) super.onActivityResult(requestCode, resultCode, data)
if(resultCode == RESULT_OK && (requestCode == CREATE_IMAGE_FILE_REQ || requestCode == CREATE_AUDIO_FILE_REQ || requestCode == CREATE_BINARY_FILE_REQ)){ if(resultCode == RESULT_OK && (requestCode == CREATE_IMAGE_FILE_REQ || requestCode == CREATE_AUDIO_FILE_REQ || requestCode == CREATE_BINARY_FILE_REQ)){
//todo - tidy this mess up... //todo - tidy this mess up... refactor - none of this should be here
if(imageState == null && audioState == null && binaryState == null) return if(imageState == null && audioState == null && binaryState == null) return
data?.data?.let{ uri -> data?.data?.let{ uri ->
val cachedFile = when { val cachedFile = when {