rename entity to user

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-07-18 18:48:27 +02:00
parent 7568ccdbb1
commit 480122d648
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
3 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ public class AdvancedUserItem extends AbstractFlexibleItem<AdvancedUserItem.User
return participant;
}
public User getEntity() {
public User getUser() {
return user;
}

View File

@ -85,7 +85,7 @@ class SwitchAccountController(args: Bundle? = null) :
private val onSwitchItemClickListener = FlexibleAdapter.OnItemClickListener { _, position ->
if (userItems.size > position) {
val user = (userItems[position] as AdvancedUserItem).entity
val user = (userItems[position] as AdvancedUserItem).user
if (userManager.setUserAsActive(user).blockingGet()) {
cookieManager.cookieStore.removeAll()

View File

@ -275,7 +275,7 @@ public class ChooseAccountDialogFragment extends DialogFragment {
@Override
public boolean onItemClick(View view, int position) {
if (userItems.size() > position) {
User user = (userItems.get(position)).getEntity();
User user = (userItems.get(position)).getUser();
if (userManager.setUserAsActive(user).blockingGet()) {
cookieManager.getCookieStore().removeAll();