Mercurial > cgi-bin > hgweb.cgi > SimpleResizer
comparison app/src/main/java/com/bartsent/simpleresizer/MainActivity.kt @ 5:247e03baf77c
Fix rotation.
author | David Barts <n5jrn@me.com> |
---|---|
date | Wed, 10 Feb 2021 16:31:01 -0800 |
parents | b6a217c850fb |
children | 20da616dcda0 |
comparison
equal
deleted
inserted
replaced
4:b6a217c850fb | 5:247e03baf77c |
---|---|
39 if (resultCode == Activity.RESULT_OK && imageUri != null) { | 39 if (resultCode == Activity.RESULT_OK && imageUri != null) { |
40 Intent(Intent.ACTION_SEND, imageUri, this, EditImage::class.java).run { | 40 Intent(Intent.ACTION_SEND, imageUri, this, EditImage::class.java).run { |
41 startActivity(this) | 41 startActivity(this) |
42 } | 42 } |
43 } else { | 43 } else { |
44 Toast.makeText(applicationContext, "Unable to get image!", Toast.LENGTH_LONG) | 44 Toast.makeText(applicationContext, "Unable to get image!", Toast.LENGTH_LONG).show() |
45 } | 45 } |
46 } | 46 } |
47 } | 47 } |
48 } | 48 } |