equal
deleted
inserted
replaced
42 #include "CPbk2PredictiveSearchFilter.h" |
42 #include "CPbk2PredictiveSearchFilter.h" |
43 #include "cpbk2contactviewdoublelistbox.h" |
43 #include "cpbk2contactviewdoublelistbox.h" |
44 #include <CPbk2ThumbnailManager.h> |
44 #include <CPbk2ThumbnailManager.h> |
45 #include <Pbk2CommonUi.rsg> |
45 #include <Pbk2CommonUi.rsg> |
46 #include <Pbk2UIControls.rsg> |
46 #include <Pbk2UIControls.rsg> |
|
47 #include "CPbk2AppUi.h" |
47 |
48 |
48 // Virtual Phonebook |
49 // Virtual Phonebook |
49 #include <MVPbkContactViewBase.h> |
50 #include <MVPbkContactViewBase.h> |
50 #include <MVPbkViewContact.h> |
51 #include <MVPbkViewContact.h> |
51 #include <MVPbkContactLink.h> |
52 #include <MVPbkContactLink.h> |
2158 void CPbk2NamesListControl::DoHandleContactAdditionL( TInt aIndex ) |
2159 void CPbk2NamesListControl::DoHandleContactAdditionL( TInt aIndex ) |
2159 { |
2160 { |
2160 //Prevent messing with focus with always-on when Phonebook hidden in |
2161 //Prevent messing with focus with always-on when Phonebook hidden in |
2161 //reseted state. Otherwise background-added contacts will change focus. |
2162 //reseted state. Otherwise background-added contacts will change focus. |
2162 //This would cause Phonebook not to look like freshly started when opened again. |
2163 //This would cause Phonebook not to look like freshly started when opened again. |
2163 if(iCurrentState->NamesListState() != CPbk2NamesListControl::EStateHidden) |
2164 //And also make sure foreground-added contact will show the new contact |
|
2165 //even though the focus is not seen. |
|
2166 if( (static_cast<CPbk2AppUi*>( |
|
2167 CEikonEnv::Static()->AppUi()))->IsForeground() ) |
2164 { |
2168 { |
2165 SelectAndChangeReadyStateL(); |
2169 SelectAndChangeReadyStateL(); |
2166 } |
2170 } |
2167 |
2171 |
2168 if( !iCheckMassUpdate->MassUpdateDetected() ) |
2172 if( !iCheckMassUpdate->MassUpdateDetected() ) |