mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 05:55:57 +00:00
Hide members list when user enters pip.
This commit is contained in:
@@ -81,6 +81,7 @@ public class WebRtcCallActivity extends AppCompatActivity implements SafetyNumbe
|
|||||||
public static final String EXTRA_ENABLE_VIDEO_IF_AVAILABLE = WebRtcCallActivity.class.getCanonicalName() + ".ENABLE_VIDEO_IF_AVAILABLE";
|
public static final String EXTRA_ENABLE_VIDEO_IF_AVAILABLE = WebRtcCallActivity.class.getCanonicalName() + ".ENABLE_VIDEO_IF_AVAILABLE";
|
||||||
|
|
||||||
private CallParticipantsListUpdatePopupWindow participantUpdateWindow;
|
private CallParticipantsListUpdatePopupWindow participantUpdateWindow;
|
||||||
|
private CallParticipantsListDialog participantsListDialog;
|
||||||
|
|
||||||
private WebRtcCallView callScreen;
|
private WebRtcCallView callScreen;
|
||||||
private TooltipPopup videoTooltip;
|
private TooltipPopup videoTooltip;
|
||||||
@@ -196,6 +197,7 @@ public class WebRtcCallActivity extends AppCompatActivity implements SafetyNumbe
|
|||||||
.setAspectRatio(new Rational(9, 16))
|
.setAspectRatio(new Rational(9, 16))
|
||||||
.build();
|
.build();
|
||||||
enterPictureInPictureMode(params);
|
enterPictureInPictureMode(params);
|
||||||
|
CallParticipantsListDialog.dismiss(getSupportFragmentManager());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@@ -9,6 +9,7 @@ import android.view.ViewGroup;
|
|||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.fragment.app.DialogFragment;
|
import androidx.fragment.app.DialogFragment;
|
||||||
|
import androidx.fragment.app.Fragment;
|
||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
import androidx.lifecycle.ViewModelProviders;
|
import androidx.lifecycle.ViewModelProviders;
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
@@ -38,6 +39,13 @@ public class CallParticipantsListDialog extends BottomSheetDialogFragment {
|
|||||||
fragment.show(manager, BottomSheetUtil.STANDARD_BOTTOM_SHEET_FRAGMENT_TAG);
|
fragment.show(manager, BottomSheetUtil.STANDARD_BOTTOM_SHEET_FRAGMENT_TAG);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void dismiss(@NonNull FragmentManager manager) {
|
||||||
|
Fragment fragment = manager.findFragmentByTag(BottomSheetUtil.STANDARD_BOTTOM_SHEET_FRAGMENT_TAG);
|
||||||
|
if (fragment instanceof CallParticipantsListDialog) {
|
||||||
|
((CallParticipantsListDialog) fragment).dismissAllowingStateLoss();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void show(@NonNull FragmentManager manager, @Nullable String tag) {
|
public void show(@NonNull FragmentManager manager, @Nullable String tag) {
|
||||||
BottomSheetUtil.show(manager, tag, this);
|
BottomSheetUtil.show(manager, tag, this);
|
||||||
|
Reference in New Issue
Block a user