Hide chat button from history detail if chat disabled

This commit is contained in:
Sylvain Berfini 2012-11-05 15:53:24 +01:00
parent 462fd3d5c3
commit 0690a29571

View file

@ -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);