kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix call participants button showing under status bar after returning from PIP.
rodzic
5662473c18
commit
96d60e11b0
|
@ -124,6 +124,7 @@ public class WebRtcCallView extends ConstraintLayout {
|
||||||
private ConstraintSet largeHeaderConstraints;
|
private ConstraintSet largeHeaderConstraints;
|
||||||
private ConstraintSet smallHeaderConstraints;
|
private ConstraintSet smallHeaderConstraints;
|
||||||
private Guideline statusBarGuideline;
|
private Guideline statusBarGuideline;
|
||||||
|
private Guideline navigationBarGuideline;
|
||||||
private int navBarBottomInset;
|
private int navBarBottomInset;
|
||||||
private View fullScreenShade;
|
private View fullScreenShade;
|
||||||
|
|
||||||
|
@ -205,6 +206,7 @@ public class WebRtcCallView extends ConstraintLayout {
|
||||||
foldParticipantCount = findViewById(R.id.fold_show_participants_menu_counter);
|
foldParticipantCount = findViewById(R.id.fold_show_participants_menu_counter);
|
||||||
largeHeaderAvatar = findViewById(R.id.call_screen_header_avatar);
|
largeHeaderAvatar = findViewById(R.id.call_screen_header_avatar);
|
||||||
statusBarGuideline = findViewById(R.id.call_screen_status_bar_guideline);
|
statusBarGuideline = findViewById(R.id.call_screen_status_bar_guideline);
|
||||||
|
navigationBarGuideline = findViewById(R.id.call_screen_navigation_bar_guideline);
|
||||||
fullScreenShade = findViewById(R.id.call_screen_full_shade);
|
fullScreenShade = findViewById(R.id.call_screen_full_shade);
|
||||||
|
|
||||||
View decline = findViewById(R.id.call_screen_decline_call);
|
View decline = findViewById(R.id.call_screen_decline_call);
|
||||||
|
@ -330,9 +332,9 @@ public class WebRtcCallView extends ConstraintLayout {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean fitSystemWindows(Rect insets) {
|
protected boolean fitSystemWindows(Rect insets) {
|
||||||
Guideline navigationBarGuideline = findViewById(R.id.call_screen_navigation_bar_guideline);
|
if (insets.top != 0) {
|
||||||
|
statusBarGuideline.setGuidelineBegin(insets.top);
|
||||||
statusBarGuideline.setGuidelineBegin(insets.top);
|
}
|
||||||
navigationBarGuideline.setGuidelineEnd(insets.bottom);
|
navigationBarGuideline.setGuidelineEnd(insets.bottom);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Ładowanie…
Reference in New Issue