同步peko:修复公会高管设置入口展示问题
This commit is contained in:
@@ -220,6 +220,11 @@ public class ModuleHallActivity extends BaseMvpActivity<IModuleHallView, ModuleH
|
||||
HallInfo hallInfo = clanAndHallInfo.getHall();
|
||||
clanInfo = clanAndHallInfo.getClan();
|
||||
setManegeOption((HallDataManager.get().isManager() && isSelfHall) || clanAndHallInfo.isManageHall());
|
||||
int roleType = 0;
|
||||
if (hallInfo != null) {
|
||||
roleType = hallInfo.getRoleType();
|
||||
}
|
||||
binding.tvManageSetup.setVisibility(roleType == RoleType.OWNER ? View.VISIBLE : View.INVISIBLE);
|
||||
//高管是没有修改公会名称权限的,只有房主和超管才有
|
||||
setSettingOption((HallDataManager.get().getRoleType() == RoleType.OWNER && isSelfHall) || clanAndHallInfo.isManageHall());
|
||||
if (hallInfo != null && hallInfo.getHallId() != 0) {
|
||||
|
@@ -146,6 +146,7 @@
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:visibility="invisible"
|
||||
android:id="@+id/tv_manage_setup"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
Reference in New Issue
Block a user