mirror of
https://git.sr.ht/~oppen/ariane
synced 2024-12-26 01:38:40 +00:00
file download...
This commit is contained in:
parent
3ff4758bbe
commit
838dfcc1da
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue