Lint - avoid calling a restricted API.

fork-5.53.8
Alan Evans 2019-05-20 12:19:34 -03:00
rodzic 16c8cc88d7
commit 95858898d7
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -133,8 +133,8 @@ public class ConversationListFragment extends Fragment
emptyImage = ViewUtil.findById(view, R.id.empty); emptyImage = ViewUtil.findById(view, R.id.empty);
emptySearch = ViewUtil.findById(view, R.id.empty_search); emptySearch = ViewUtil.findById(view, R.id.empty_search);
if (archive) fab.setVisibility(View.GONE); if (archive) fab.hide();
else fab.setVisibility(View.VISIBLE); else fab.show();
reminderView.setOnDismissListener(() -> updateReminders(true)); reminderView.setOnDismissListener(() -> updateReminders(true));

Wyświetl plik

@ -118,7 +118,7 @@ public class WebRtcCallScreen extends FrameLayout implements RecipientModifiedLi
public void setIncomingCall(Recipient personInfo) { public void setIncomingCall(Recipient personInfo) {
setCard(personInfo, getContext().getString(R.string.CallScreen_Incoming_call)); setCard(personInfo, getContext().getString(R.string.CallScreen_Incoming_call));
endCallButton.setVisibility(View.INVISIBLE); endCallButton.hide();
incomingCallButton.setVisibility(View.VISIBLE); incomingCallButton.setVisibility(View.VISIBLE);
incomingCallButton.startRingingAnimation(); incomingCallButton.startRingingAnimation();
} }
@ -141,7 +141,7 @@ public class WebRtcCallScreen extends FrameLayout implements RecipientModifiedLi
this.untrustedIdentityExplanation.setText(spannableString); this.untrustedIdentityExplanation.setText(spannableString);
this.untrustedIdentityExplanation.setMovementMethod(LinkMovementMethod.getInstance()); this.untrustedIdentityExplanation.setMovementMethod(LinkMovementMethod.getInstance());
this.endCallButton.setVisibility(View.INVISIBLE); this.endCallButton.hide();
} }
public void setIncomingCallActionListener(WebRtcAnswerDeclineButton.AnswerDeclineListener listener) { public void setIncomingCallActionListener(WebRtcAnswerDeclineButton.AnswerDeclineListener listener) {