Enable sharing media directly from Tusky (#852)

* Extract duplicated code into BaseActivity

* Migrate MediaUtils to kotlin

* Migrate ViewVideoActivity to kotlin

* Migrate ViewMediaActivity to kotlin

* Initial media sharing functionality

* Address code review feedback

* Make share icon match

* Address code review feedback
This commit is contained in:
Levi Bard 2018-10-01 11:50:17 +02:00 committed by Konrad Pozniak
commit 0bca94b94e
18 changed files with 785 additions and 690 deletions

View file

@ -113,7 +113,7 @@ class EditProfileViewModel @Inject constructor(
Single.fromCallable {
val contentResolver = context.contentResolver
val sourceBitmap = MediaUtils.getSampledBitmap(contentResolver, uri, resizeWidth, resizeHeight)
val sourceBitmap = getSampledBitmap(contentResolver, uri, resizeWidth, resizeHeight)
if (sourceBitmap == null) {
throw Exception()