equal
deleted
inserted
replaced
570 |
570 |
571 // ----------------------------------------------------------------------------- |
571 // ----------------------------------------------------------------------------- |
572 // |
572 // |
573 // ----------------------------------------------------------------------------- |
573 // ----------------------------------------------------------------------------- |
574 // |
574 // |
575 void CMusUiLiveSharingView::RefreshView( TBool aLayoutChange ) |
575 void CMusUiLiveSharingView::RefreshView() |
576 { |
576 { |
577 MUS_LOG( "mus: [MUSUI ] -> CMusUiLiveSharingView::RefreshView" ); |
577 MUS_LOG( "mus: [MUSUI ] -> CMusUiLiveSharingView::RefreshView" ); |
578 if ( iController ) |
578 if ( iController ) |
579 { |
579 { |
580 if ( aLayoutChange && iController->IsSessionEstablished() ) |
580 DoRefreshView(); |
581 { |
|
582 iController->AsyncRefreshView(); |
|
583 } |
|
584 else |
|
585 { |
|
586 DoRefreshView(); |
|
587 } |
|
588 |
|
589 } |
581 } |
590 MUS_LOG( "mus: [MUSUI ] <- CMusUiLiveSharingView::RefreshView" ); |
582 MUS_LOG( "mus: [MUSUI ] <- CMusUiLiveSharingView::RefreshView" ); |
591 } |
583 } |
592 |
584 |
593 |
585 |
596 // ----------------------------------------------------------------------------- |
588 // ----------------------------------------------------------------------------- |
597 // |
589 // |
598 void CMusUiLiveSharingView::DoRefreshView() |
590 void CMusUiLiveSharingView::DoRefreshView() |
599 { |
591 { |
600 MUS_LOG( "mus: [MUSUI ] -> CMusUiLiveSharingView::DoRefreshView" ); |
592 MUS_LOG( "mus: [MUSUI ] -> CMusUiLiveSharingView::DoRefreshView" ); |
|
593 |
|
594 if ( iBackgroundContainer ) |
|
595 { |
|
596 iBackgroundContainer->SetRect(ClientRect()); |
|
597 } |
|
598 |
601 if ( iContainer ) |
599 if ( iContainer ) |
602 { |
600 { |
603 TRect containerRect( ClientRect().iBr.iX - KMusUiContainerWidth, |
601 TRect containerRect( ClientRect().iBr.iX - KMusUiContainerWidth, |
604 ClientRect().iTl.iY, |
602 ClientRect().iTl.iY, |
605 ClientRect().iBr.iX, |
603 ClientRect().iBr.iX, |
623 iController->SetRect( videoRect ); |
621 iController->SetRect( videoRect ); |
624 } |
622 } |
625 |
623 |
626 MUS_LOG( "mus: [MUSUI ] <- CMusUiLiveSharingView::DoRefreshView" ); |
624 MUS_LOG( "mus: [MUSUI ] <- CMusUiLiveSharingView::DoRefreshView" ); |
627 } |
625 } |
628 |
|
629 |
626 |
630 // ----------------------------------------------------------------------------- |
627 // ----------------------------------------------------------------------------- |
631 // |
628 // |
632 // ----------------------------------------------------------------------------- |
629 // ----------------------------------------------------------------------------- |
633 // |
630 // |