equal
deleted
inserted
replaced
910 |
910 |
911 // Hide the focus. |
911 // Hide the focus. |
912 iAppUi.SetFocusVisibility( EFalse ); |
912 iAppUi.SetFocusVisibility( EFalse ); |
913 HandleButtonReleaseEvent(); // Finishes the focus removal. |
913 HandleButtonReleaseEvent(); // Finishes the focus removal. |
914 iStylusPopUpMenuLaunched = EFalse; |
914 iStylusPopUpMenuLaunched = EFalse; |
|
915 UpdateGridOffset(); |
915 break; |
916 break; |
916 } |
917 } |
917 case EFsEmailUiCmdSync: |
918 case EFsEmailUiCmdSync: |
918 case EFsEmailUiCmdSyncAll: |
919 case EFsEmailUiCmdSyncAll: |
919 { |
920 { |
1824 // Toggle safety lock always when receiving foreground back. |
1825 // Toggle safety lock always when receiving foreground back. |
1825 if ( aForeground && iDoubleClickLock && iFirstStartComplete ) |
1826 if ( aForeground && iDoubleClickLock && iFirstStartComplete ) |
1826 { |
1827 { |
1827 iDoubleClickLock = EFalse; |
1828 iDoubleClickLock = EFalse; |
1828 } |
1829 } |
|
1830 UpdateGridOffset(); |
1829 } |
1831 } |
1830 |
1832 |
1831 void CFSEmailUiLauncherGridVisualiser::GetParentLayoutsL( |
1833 void CFSEmailUiLauncherGridVisualiser::GetParentLayoutsL( |
1832 RPointerArray<CAlfVisual>& aLayoutArray ) const |
1834 RPointerArray<CAlfVisual>& aLayoutArray ) const |
1833 { |
1835 { |
2776 iStartupCallbackTimer->Cancel(); // just in case |
2778 iStartupCallbackTimer->Cancel(); // just in case |
2777 iStartupCallbackTimer->SetPriority( CActive::EPriorityIdle ); |
2779 iStartupCallbackTimer->SetPriority( CActive::EPriorityIdle ); |
2778 iStartupCallbackTimer->Start( 200 ); |
2780 iStartupCallbackTimer->Start( 200 ); |
2779 } |
2781 } |
2780 |
2782 |
|
2783 UpdateGridOffset(); |
2781 CFsEmailUiViewBase::HandleAppForegroundEventL( aForeground ); |
2784 CFsEmailUiViewBase::HandleAppForegroundEventL( aForeground ); |
2782 } |
2785 } |
2783 |
2786 |
2784 // ---------------------------------------------------------------------------- |
2787 // ---------------------------------------------------------------------------- |
2785 // CFSEmailUiLauncherGridVisualiser::TimerEventL() |
2788 // CFSEmailUiLauncherGridVisualiser::TimerEventL() |
2814 const TSize worldSize( 0, iRowCount * iRowHeight ); |
2817 const TSize worldSize( 0, iRowCount * iRowHeight ); |
2815 iPhysics->InitPhysicsL( worldSize, viewSize, EFalse ); |
2818 iPhysics->InitPhysicsL( worldSize, viewSize, EFalse ); |
2816 } |
2819 } |
2817 } |
2820 } |
2818 |
2821 |
|
2822 // --------------------------------------------------------------------------- |
|
2823 // CFSEmailUiLauncherGridVisualiser::UpdateGridOffset() |
|
2824 // --------------------------------------------------------------------------- |
|
2825 // |
|
2826 void CFSEmailUiLauncherGridVisualiser::UpdateGridOffset() |
|
2827 { |
|
2828 if ( iConstructionCompleted ) |
|
2829 { |
|
2830 TAlfTimedPoint alfScrollOffset; |
|
2831 alfScrollOffset.iY.SetTarget( 1.0 , 0); |
|
2832 iCurrentLevel.iGridLayout->SetScrollOffset(alfScrollOffset); |
|
2833 iCurrentLevel.iParentPos.iY = 1.0; |
|
2834 } |
|
2835 } |
|
2836 |