mirror of
https://github.com/NekoX-Dev/NekoX.git
synced 2024-12-02 16:30:08 +01:00
hide search and submit button if not admin
This commit is contained in:
parent
93b00cfdcf
commit
1d3c46a2be
@ -560,7 +560,7 @@ public class ChatUsersActivity extends BaseFragment implements NotificationCente
|
||||
}
|
||||
}
|
||||
});
|
||||
if (selectType != 0 || type == TYPE_USERS || type == TYPE_BANNED || type == TYPE_KICKED) {
|
||||
if (ChatObject.hasAdminRights(currentChat) && (selectType != 0 || type == TYPE_USERS || type == TYPE_BANNED || type == TYPE_KICKED)) {
|
||||
searchListViewAdapter = new SearchAdapter(context);
|
||||
ActionBarMenu menu = actionBar.createMenu();
|
||||
searchItem = menu.addItem(search_button, R.drawable.ic_ab_search).setIsSearchField(true).setActionBarMenuItemSearchListener(new ActionBarMenuItem.ActionBarMenuItemSearchListener() {
|
||||
|
Loading…
Reference in New Issue
Block a user