1
0
mirror of https://github.com/accelforce/Yuito synced 2024-12-23 05:55:20 +01:00

show edit button on own profile again

closes #1471
This commit is contained in:
Conny Duck 2019-09-07 16:34:17 +02:00
parent 0e2a786b61
commit 98f2cd0789

View File

@ -115,10 +115,6 @@ class AccountActivity : BottomSheetActivity(), ActionButtonActivity, HasAndroidI
// Obtain information to fill out the profile.
viewModel.setAccountInfo(intent.getStringExtra(KEY_ACCOUNT_ID))
if (viewModel.isSelf) {
updateButtons()
}
val sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this)
animateAvatar = sharedPrefs.getBoolean("animateGifAvatars", false)
hideFab = sharedPrefs.getBoolean("fabHide", false)
@ -129,6 +125,10 @@ class AccountActivity : BottomSheetActivity(), ActionButtonActivity, HasAndroidI
setupAccountViews()
setupRefreshLayout()
subscribeObservables()
if (viewModel.isSelf) {
updateButtons()
}
}
/**