Fix a bug

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-12-09 20:37:29 +01:00
parent fdaa69f489
commit 8aee1afa2b
2 changed files with 7 additions and 3 deletions

View file

@ -549,8 +549,8 @@ public class CallActivity extends AppCompatActivity {
Set<String> oldSesssions = new HashSet<>();
for (HashMap<String, String> participant : users) {
Object inCallObject = participant.get("inCall");
if (!participant.get("sessionId").equals(callSession)) {
Object inCallObject = participant.get("inCall");
if ((boolean) inCallObject) {
newSessions.add(participant.get("sessionId"));
} else {

View file

@ -381,12 +381,16 @@ public class SettingsController extends BaseController {
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
messageView.setVisibility(View.GONE);
if (messageView != null) {
messageView.setVisibility(View.GONE);
}
}
});
} else {
messageView.setVisibility(View.GONE);
if (messageView != null) {
messageView.setVisibility(View.GONE);
}
}
}