Skip to content

Commit

Permalink
fix: do not show callTopControls on PiP mode for android
Browse files Browse the repository at this point in the history
  • Loading branch information
kristian-mkd committed Nov 26, 2024
1 parent 3c81092 commit daf49de
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
useCall,
CallContent,
useTheme,
useIsInPiPMode,
} from '@stream-io/video-react-native-sdk';
import { ActivityIndicator, StatusBar, StyleSheet, View } from 'react-native';
import { ParticipantsInfoList } from './ParticipantsInfoList';
Expand Down Expand Up @@ -34,6 +35,7 @@ export const ActiveCall = ({
const styles = useStyles();
const { selectedLayout } = useLayout();
const themeMode = useAppGlobalStoreValue((store) => store.themeMode);
const isInPiPMode = useIsInPiPMode(false);

const onOpenCallParticipantsInfo = useCallback(() => {
setIsCallParticipantsVisible(true);
Expand Down Expand Up @@ -87,7 +89,7 @@ export const ActiveCall = ({
<StatusBar
barStyle={themeMode === 'light' ? 'dark-content' : 'light-content'}
/>
<CustomTopControls />
{!isInPiPMode && <CustomTopControls />}
<CallContent
onHangupCallHandler={onHangupCallHandler}
CallControls={CustomBottomControls}
Expand Down

0 comments on commit daf49de

Please sign in to comment.