mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-10 06:14:10 +01:00
rename entity to user
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
7568ccdbb1
commit
480122d648
@ -82,7 +82,7 @@ public class AdvancedUserItem extends AbstractFlexibleItem<AdvancedUserItem.User
|
||||
return participant;
|
||||
}
|
||||
|
||||
public User getEntity() {
|
||||
public User getUser() {
|
||||
return user;
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user