×
Namespaces

Variants
Actions

Password text not updated automatically in setting item list (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
CompatibilityArticle
Created: User:Technical writer 1 (29 Dec 2006)
Last edited: hamishwillee (16 Mar 2012)

Description

After launching the setting page for an item of type CAknPasswordSettingItem, changes to the password are not visible in the settings list until UpdateListBoxTextL() is explicitly called on the setting item.

Solution

After calling CAknSettingItemList::EditItemL() to edit a CAknPasswordSettingItem object, call CAknSettingItem::UpdateListBoxTextL() to make any changes visible in the setting list.

void CMySettingItemList::EditCurrentItemL()
{
// open the setting page for the current item
EditItemL( ListBox()->CurrentItemIndex(), ETrue );
// Force update on CAknPasswordSettingItem
if( ListBox()->CurrentItemIndex() == KPasswordItemIndex )
{
(*(SettingItemArray()))[ListBox()->CurrentItemIndex()]->UpdateListBoxTextL();
}
StoreSettingsL();
}

This workaround is also implemented in the example application "S60 Platform: Settings Screen Example"

This page was last modified on 16 March 2012, at 07:27.
32 page views in the last 30 days.
×