fix the activity transitions (again 🙄)
This commit is contained in:
parent
eee48e48d1
commit
ce7270cdb2
7 changed files with 18 additions and 12 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)
|
||||
finishWithSlideOutAnimation()
|
||||
finish()
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -304,7 +304,7 @@ class EditProfileActivity : BaseActivity(), Injectable {
|
|||
.putBoolean("refreshProfileHeader", true)
|
||||
.apply()
|
||||
setResult(Activity.RESULT_OK)
|
||||
finishWithSlideOutAnimation()
|
||||
finish()
|
||||
}
|
||||
|
||||
override fun onFailure(call: Call<Account>, t: Throwable) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue