Hide chat button from history detail if chat disabled
This commit is contained in:
parent
462fd3d5c3
commit
0690a29571
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,8 @@ public class HistoryDetailFragment extends Fragment implements OnClickListener {
|
|||
|
||||
chat = (ImageView) view.findViewById(R.id.chat);
|
||||
chat.setOnClickListener(this);
|
||||
if (getResources().getBoolean(R.bool.disable_chat))
|
||||
view.findViewById(R.id.chatRow).setVisibility(View.GONE);
|
||||
|
||||
addToContacts = (ImageView) view.findViewById(R.id.addToContacts);
|
||||
addToContacts.setOnClickListener(this);
|
||||
|
|
Loading…
Reference in a new issue