From 95858898d738786361ae5c5363b052490e28912f Mon Sep 17 00:00:00 2001 From: Alan Evans Date: Mon, 20 May 2019 12:19:34 -0300 Subject: [PATCH] Lint - avoid calling a restricted API. --- src/org/thoughtcrime/securesms/ConversationListFragment.java | 4 ++-- .../securesms/components/webrtc/WebRtcCallScreen.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/org/thoughtcrime/securesms/ConversationListFragment.java b/src/org/thoughtcrime/securesms/ConversationListFragment.java index 8957eef761..c6542115c3 100644 --- a/src/org/thoughtcrime/securesms/ConversationListFragment.java +++ b/src/org/thoughtcrime/securesms/ConversationListFragment.java @@ -133,8 +133,8 @@ public class ConversationListFragment extends Fragment emptyImage = ViewUtil.findById(view, R.id.empty); emptySearch = ViewUtil.findById(view, R.id.empty_search); - if (archive) fab.setVisibility(View.GONE); - else fab.setVisibility(View.VISIBLE); + if (archive) fab.hide(); + else fab.show(); reminderView.setOnDismissListener(() -> updateReminders(true)); diff --git a/src/org/thoughtcrime/securesms/components/webrtc/WebRtcCallScreen.java b/src/org/thoughtcrime/securesms/components/webrtc/WebRtcCallScreen.java index a605aa9c08..9bbc3c7215 100644 --- a/src/org/thoughtcrime/securesms/components/webrtc/WebRtcCallScreen.java +++ b/src/org/thoughtcrime/securesms/components/webrtc/WebRtcCallScreen.java @@ -118,7 +118,7 @@ public class WebRtcCallScreen extends FrameLayout implements RecipientModifiedLi public void setIncomingCall(Recipient personInfo) { setCard(personInfo, getContext().getString(R.string.CallScreen_Incoming_call)); - endCallButton.setVisibility(View.INVISIBLE); + endCallButton.hide(); incomingCallButton.setVisibility(View.VISIBLE); incomingCallButton.startRingingAnimation(); } @@ -141,7 +141,7 @@ public class WebRtcCallScreen extends FrameLayout implements RecipientModifiedLi this.untrustedIdentityExplanation.setText(spannableString); this.untrustedIdentityExplanation.setMovementMethod(LinkMovementMethod.getInstance()); - this.endCallButton.setVisibility(View.INVISIBLE); + this.endCallButton.hide(); } public void setIncomingCallActionListener(WebRtcAnswerDeclineButton.AnswerDeclineListener listener) {