improve activity slide in/out handling
This commit is contained in:
parent
2b246fc379
commit
9a42999451
10 changed files with 39 additions and 51 deletions
|
|
@ -290,7 +290,7 @@ class EditProfileActivity : BaseActivity(), Injectable {
|
|||
if (displayName == null && note == null && locked == null && avatar == null && header == null) {
|
||||
/** if nothing has changed, there is no need to make a network request */
|
||||
setResult(Activity.RESULT_OK)
|
||||
finish()
|
||||
finishWithSlideOutAnimation()
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -304,7 +304,7 @@ class EditProfileActivity : BaseActivity(), Injectable {
|
|||
.putBoolean("refreshProfileHeader", true)
|
||||
.apply()
|
||||
setResult(Activity.RESULT_OK)
|
||||
finish()
|
||||
finishWithSlideOutAnimation()
|
||||
}
|
||||
|
||||
override fun onFailure(call: Call<Account>, t: Throwable) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue