|
@@ -390,7 +390,13 @@ class MovieEditActivity : AppCompatActivity(),
|
|
.doOnSubscribe { pd.show() }
|
|
.doOnSubscribe { pd.show() }
|
|
.doFinally { pd.dismiss() }
|
|
.doFinally { pd.dismiss() }
|
|
.subscribe({
|
|
.subscribe({
|
|
- Toast.makeText(this@MovieEditActivity, R.string.share_dialog_upload_suc, Toast.LENGTH_SHORT).show()
|
|
|
|
|
|
+ val context = this@MovieEditActivity
|
|
|
|
+ when (it.errorCode) {
|
|
|
|
+ 4013 -> Toast.makeText(context, R.string.share_dialog_upload_failed, Toast.LENGTH_SHORT).show()
|
|
|
|
+ else -> {
|
|
|
|
+ Toast.makeText(context, R.string.share_dialog_upload_suc, Toast.LENGTH_SHORT).show()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}, {
|
|
}, {
|
|
Toast.makeText(this@MovieEditActivity, R.string.share_dialog_upload_failed, Toast.LENGTH_SHORT).show()
|
|
Toast.makeText(this@MovieEditActivity, R.string.share_dialog_upload_failed, Toast.LENGTH_SHORT).show()
|
|
})
|
|
})
|