WIP for profile loading
This commit is contained in:
parent
e38dc6c913
commit
e34ff6ff2b
2 changed files with 103 additions and 2 deletions
|
@ -237,7 +237,7 @@ class UserInfoActivity : AbsBaseActivity() {
|
|||
.compressToBitmapAsFlowable(File(profileImagePath, USER_BANNER))
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe { bitmap -> bannerImage.setImageBitmap(bitmap) })
|
||||
.subscribe({ bitmap -> bannerImage.setImageBitmap(bitmap) }, { t -> println() }))
|
||||
}
|
||||
|
||||
private fun loadImageFromStorage(path: String) {
|
||||
|
@ -249,7 +249,7 @@ class UserInfoActivity : AbsBaseActivity() {
|
|||
.compressToBitmapAsFlowable(File(path, USER_PROFILE))
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe { bitmap -> userImage!!.setImageBitmap(bitmap) })
|
||||
.subscribe({ bitmap -> userImage!!.setImageBitmap(bitmap) }, { t -> println() }))
|
||||
}
|
||||
|
||||
private fun saveToInternalStorage(bitmapImage: Bitmap, userBanner: String): String {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue