Remove some classes which are never instanced by only used for instanceof checks.

This commit is contained in:
B. Petersen
2016-11-14 14:30:01 +01:00
parent c8f1c82fa9
commit 774d18de46
9 changed files with 20 additions and 48 deletions
@@ -852,7 +852,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
if (info != null) {
count = info.participants.participants.size();
}
if (count == 0 || currentChat.deactivated || currentChat.left || currentChat instanceof TLRPC.TL_chatForbidden || info != null && info.participants instanceof TLRPC.TL_chatParticipantsForbidden) {
if ((count == 0) || currentChat.deactivated || currentChat.left || ((info != null) && (info.participants instanceof TLRPC.TL_chatParticipantsForbidden))) {
avatarContainer.setEnabled(false);
}
}