phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlauncherheadercontrol.cpp
equal
deleted
inserted
replaced
437 { |
437 { |
438 CCoeControl::HandlePointerEventL( aPointerEvent ); |
438 CCoeControl::HandlePointerEventL( aPointerEvent ); |
439 switch(aPointerEvent.iType) |
439 switch(aPointerEvent.iType) |
440 { |
440 { |
441 case TPointerEvent::EButton1Down: |
441 case TPointerEvent::EButton1Down: |
442 |
442 { |
|
443 TCmsContactStore cntStore = iPlugin.ContactHandler().ContactStore(); |
443 // Image selection popup |
444 // Image selection popup |
444 if( iPlugin.ContactHandler().ContactStore() != ECmsContactStoreSdn |
445 // Image selection popup should not be shown for contact's that belong to sdn store |
445 && IsPhoneMemoryInConfigurationL() |
446 // Image selection popup can be shown only if the default |
|
447 // saving memory includes local contact db (contacts.cdb) or if the contact belongs to |
|
448 // local contact DB |
|
449 if( cntStore != ECmsContactStoreSdn |
|
450 && ( IsPhoneMemoryInConfigurationL() |
|
451 || (cntStore != ECmsContactStoreSim) ) |
446 && iImage->Rect().Contains(aPointerEvent.iPosition) ) |
452 && iImage->Rect().Contains(aPointerEvent.iPosition) ) |
447 { |
453 { |
448 // Show the feedback |
454 // Show the feedback |
449 MTouchFeedback* feedback = MTouchFeedback::Instance(); |
455 MTouchFeedback* feedback = MTouchFeedback::Instance(); |
450 if ( feedback ) |
456 if ( feedback ) |
452 feedback->InstantFeedback( ETouchFeedbackBasic ); |
458 feedback->InstantFeedback( ETouchFeedbackBasic ); |
453 } |
459 } |
454 LaunchStylusPopupL( aPointerEvent ); |
460 LaunchStylusPopupL( aPointerEvent ); |
455 } |
461 } |
456 break; |
462 break; |
|
463 } |
457 |
464 |
458 default: |
465 default: |
459 break; |
466 break; |
460 } |
467 } |
461 } |
468 } |