mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
Only show the server host in the account switcher as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
21093282f9
commit
a1bee6a776
@ -21,6 +21,7 @@
|
|||||||
package com.nextcloud.talk.adapters.items;
|
package com.nextcloud.talk.adapters.items;
|
||||||
|
|
||||||
import android.accounts.Account;
|
import android.accounts.Account;
|
||||||
|
import android.net.Uri;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.*;
|
import android.widget.*;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
@ -113,7 +114,7 @@ public class AdvancedUserItem extends AbstractFlexibleItem<AdvancedUserItem.User
|
|||||||
holder.contactDisplayName.setText(participant.getDisplayName());
|
holder.contactDisplayName.setText(participant.getDisplayName());
|
||||||
}
|
}
|
||||||
|
|
||||||
holder.serverUrl.setText(userEntity.getBaseUrl());
|
holder.serverUrl.setText((Uri.parse(userEntity.getBaseUrl()).getHost()));
|
||||||
|
|
||||||
if (userEntity != null && userEntity.getBaseUrl() != null && userEntity.getBaseUrl().startsWith("http://") || userEntity.getBaseUrl().startsWith("https://")) {
|
if (userEntity != null && userEntity.getBaseUrl() != null && userEntity.getBaseUrl().startsWith("http://") || userEntity.getBaseUrl().startsWith("https://")) {
|
||||||
holder.avatarImageView.setVisibility(View.VISIBLE);
|
holder.avatarImageView.setVisibility(View.VISIBLE);
|
||||||
|
Loading…
Reference in New Issue
Block a user