判断用户家族为空的方式更改

This commit is contained in:
huangjian
2020-11-21 16:47:17 +08:00
parent 39c3ae5211
commit e1775e012f
2 changed files with 4 additions and 2 deletions

View File

@@ -199,7 +199,8 @@ public class ModuleHallActivity extends BaseMvpActivity<IModuleHallView, ModuleH
private void initClanAndHall() {
//没有家族才更新顶部公会名,有的话重新加载公会列表
HallDataManager.get().registerName(this, hallName -> {
if (clanInfo == null) {
if (TextUtils.isEmpty(hallName)) return;
if (clanInfo == null || clanInfo.getId() == 0) {
tvTitle.setText(hallName);
} else {
loadHallList();

View File

@@ -288,8 +288,9 @@
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/dp_10"
android:layout_weight="1"
android:paddingStart="7dp"
android:paddingStart="15dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:paddingEnd="14dp"
android:text="总人数:0人"
android:textColor="@color/color_333333"