1413 iListWidget->Reset(); |
1413 iListWidget->Reset(); |
1414 if ( aCount ) |
1414 if ( aCount ) |
1415 { |
1415 { |
1416 iListWidget->ResizeL( aCount ); |
1416 iListWidget->ResizeL( aCount ); |
1417 ProvideDataWithoutThumbnailsL(aMediaArray); |
1417 ProvideDataWithoutThumbnailsL(aMediaArray); |
1418 iListWidget->SetSelectedIndex( CurrentLbxItemIndex() ); |
1418 iListWidget->SetSelectedIndex( index ); |
1419 } |
1419 } |
1420 else |
1420 else |
1421 { |
1421 { |
1422 iListWidget->RefreshScreen(0); |
1422 iListWidget->RefreshScreen(0); |
1423 } |
1423 } |
1424 } |
1424 } |
1425 else if( iMediaWall ) |
1425 else if( iMediaWall ) |
1426 { |
1426 { |
1427 // In case of mediawall components we switch to different view type if orientation changes |
1427 // In case of mediawall components we switch to different view type if orientation changes |
1428 // so there is no need to set new client rect for mediawall. |
1428 // so there is no need to set new client rect for mediawall. |
1429 |
1429 TInt index = iMediaWall->SelectedIndex(); |
1430 iMediaWall->Reset(); |
1430 iMediaWall->Reset(); |
1431 if ( aCount ) |
1431 if ( aCount ) |
1432 { |
1432 { |
1433 iMediaWall->ResizeL( aCount ); |
1433 iMediaWall->ResizeL( aCount ); |
1434 ProvideDataWithoutThumbnailsMwL(aMediaArray); |
1434 ProvideDataWithoutThumbnailsMwL(aMediaArray); |
1435 TInt index = CurrentLbxItemIndex(); |
|
1436 index = index >= 0 ? index : 0; |
1435 index = index >= 0 ? index : 0; |
1437 iMediaWall->SetSelectedIndex( index ); |
1436 iMediaWall->SetSelectedIndex( index ); |
1438 OpenAlbumL( index ); |
1437 OpenAlbumL( index ); |
1439 } |
1438 } |
1440 else |
1439 else |
1468 iListWidget->SetSelectionObserver(*this); |
1467 iListWidget->SetSelectionObserver(*this); |
1469 // TODO. check if this is correct for all lists |
1468 // TODO. check if this is correct for all lists |
1470 iListWidget->ClearFlags( CHgScroller::EHgScrollerKeyMarkingDisabled ); |
1469 iListWidget->ClearFlags( CHgScroller::EHgScrollerKeyMarkingDisabled ); |
1471 iListWidget->SetFocus(ETrue); |
1470 iListWidget->SetFocus(ETrue); |
1472 iListWidget->SetScrollBarTypeL( CHgScroller::EHgScrollerLetterStripLite ); |
1471 iListWidget->SetScrollBarTypeL( CHgScroller::EHgScrollerLetterStripLite ); |
|
1472 iListWidget->DrawableWindow()->SetOrdinalPosition( -1 ); |
1473 ProvideDataWithoutThumbnailsL(aMediaArray); |
1473 ProvideDataWithoutThumbnailsL(aMediaArray); |
1474 } |
1474 } |
1475 else |
1475 else |
1476 { |
1476 { |
1477 iListWidget->Reset(); |
1477 iListWidget->Reset(); |
1985 MPX_FUNC( "CMPXCollectionViewHgContainer::HandleOpenL" ); |
1985 MPX_FUNC( "CMPXCollectionViewHgContainer::HandleOpenL" ); |
1986 |
1986 |
1987 if( iContext == EContextGroupAlbum ) |
1987 if( iContext == EContextGroupAlbum ) |
1988 { |
1988 { |
1989 iAlbumIndex = aIndex; |
1989 iAlbumIndex = aIndex; |
|
1990 iSelectedAlbumIndex = aIndex; |
1990 SaveSelectedAlbumItemL(aIndex); |
1991 SaveSelectedAlbumItemL(aIndex); |
1991 } |
1992 } |
1992 |
1993 |
1993 if ( iContext == EContextItemAlbum ) |
1994 if ( iContext == EContextItemAlbum ) |
1994 { |
1995 { |