equal
deleted
inserted
replaced
228 // CHgVgMediaWall::RefreshScreen() |
228 // CHgVgMediaWall::RefreshScreen() |
229 // ----------------------------------------------------------------------------- |
229 // ----------------------------------------------------------------------------- |
230 // |
230 // |
231 EXPORT_C TInt CHgVgMediaWall::SelectedIndex() |
231 EXPORT_C TInt CHgVgMediaWall::SelectedIndex() |
232 { |
232 { |
233 return iSelectedIndex * iRowCount; |
233 // iObserverNotified flag is set on when animation is about to end and |
|
234 // observer is notified from the selected index. |
|
235 return ((iAnimationState == EHgVgMediaWallAnimationStateTransition || |
|
236 iAnimationState == EHgVgMediaWallAnimationStateFastTransition) && |
|
237 !iObserverNotified) ? |
|
238 KErrNotFound : iSelectedIndex * iRowCount; |
234 } |
239 } |
235 |
240 |
236 // ----------------------------------------------------------------------------- |
241 // ----------------------------------------------------------------------------- |
237 // CHgVgMediaWall::RefreshScreen() |
242 // CHgVgMediaWall::RefreshScreen() |
238 // ----------------------------------------------------------------------------- |
243 // ----------------------------------------------------------------------------- |
341 delete iSpring; |
346 delete iSpring; |
342 |
347 |
343 iPopupText1.Close(); |
348 iPopupText1.Close(); |
344 iPopupText2.Close(); |
349 iPopupText2.Close(); |
345 |
350 |
|
351 // Just to be safe, this will release all resource, eventhought |
|
352 // they should be already released at this point. |
|
353 eglReleaseThread(); |
346 } |
354 } |
347 |
355 |
348 // ----------------------------------------------------------------------------- |
356 // ----------------------------------------------------------------------------- |
349 // CHgVgMediaWall::Style() |
357 // CHgVgMediaWall::Style() |
350 // ----------------------------------------------------------------------------- |
358 // ----------------------------------------------------------------------------- |