fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/src/AknFepPredictiveSettingList.cpp
equal
deleted
inserted
replaced
282 { |
282 { |
283 // method is used to create specific setting item as required at run-time. |
283 // method is used to create specific setting item as required at run-time. |
284 // aIdentifier is used to determine what kind of setting item should be |
284 // aIdentifier is used to determine what kind of setting item should be |
285 // created |
285 // created |
286 CAknSettingItem* settingItem = NULL; |
286 CAknSettingItem* settingItem = NULL; |
287 TInt keyboardLayout = 0; |
287 TPtiKeyboardType keyboardLayout = iSettingsData.OwnerKeyboardType(); |
288 RProperty::Get(KCRUidAvkon, KAknKeyBoardLayout, keyboardLayout); |
288 |
289 switch (aIdentifier) |
289 switch (aIdentifier) |
290 { |
290 { |
291 case EAknFepCmdPredAutoComplSetting: |
291 case EAknFepCmdPredAutoComplSetting: |
292 settingItem = new (ELeave) CAknBinaryPopupSettingItem ( |
292 settingItem = new (ELeave) CAknBinaryPopupSettingItem ( |
293 aIdentifier, iSettingsData.AutoWordCompl()); |
293 aIdentifier, iSettingsData.AutoWordCompl()); |
361 CAknSettingItemList::HandleResourceChange(aType); |
361 CAknSettingItemList::HandleResourceChange(aType); |
362 // Check for keyboard layout change |
362 // Check for keyboard layout change |
363 // If layout is changed, close settings with information note |
363 // If layout is changed, close settings with information note |
364 if(aType==KEikDynamicLayoutVariantSwitch) |
364 if(aType==KEikDynamicLayoutVariantSwitch) |
365 { |
365 { |
366 TInt keyboardLayout = 0; |
366 TPtiKeyboardType keyboardLayout = iSettingsData.OwnerKeyboardType(); |
367 RProperty::Get(KCRUidAvkon, KAknKeyBoardLayout, keyboardLayout); |
|
368 if(keyboardLayout == EPtiKeyboard12Key) |
367 if(keyboardLayout == EPtiKeyboard12Key) |
369 { |
368 { |
370 #ifndef __ITI_VIRTUAL_TOUCH_FIRST_GENERATION_SUPPORT__ |
369 #ifndef __ITI_VIRTUAL_TOUCH_FIRST_GENERATION_SUPPORT__ |
371 // Adding this under the flag would avoid flickering as settings page will be |
370 // Adding this under the flag would avoid flickering as settings page will be |
372 // dismissed if __ITI_VIRTUAL_TOUCH_FIRST_GENERATION_SUPPORT__ is defined |
371 // dismissed if __ITI_VIRTUAL_TOUCH_FIRST_GENERATION_SUPPORT__ is defined |