diff options
author | Philippe Nunes <philippe.nunes@linux.intel.com> | 2012-09-06 16:26:29 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-09-17 11:25:15 -0500 |
commit | 94e35ff915fb3193d2043f85421b7ea07f98f64b (patch) | |
tree | 69151e53e6d146ed86909e23a6cdb9e4b591c2b2 /src/stk.c | |
parent | 23cdb4641930609039ee810f666c2720e36e21ba (diff) | |
download | ofono-94e35ff915fb3193d2043f85421b7ea07f98f64b.tar.gz |
stk: AID shall not be displayed in certain cases
When the icon is marked as self explanatory, the AID should not be
displayed.
Diffstat (limited to 'src/stk.c')
-rw-r--r-- | src/stk.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -539,6 +539,18 @@ static gboolean stk_alpha_id_set(struct ofono_stk *stk, if (stk->current_agent == NULL) return FALSE; + /* + * According to 3GPP TS 102.223 section 8.31: + * If icon is self-explanatory, it replaces the alpha identifier or + * text string. + * If icon is not self-explanatory, it shall be displayed together + * with the alpha identifier or text string. + */ + + if (icon->id != 0 && icon->qualifier == + STK_ICON_QUALIFIER_TYPE_SELF_EXPLANATORY) + alpha[0]='\0'; + if (stk->respond_on_exit) stk_agent_display_action(stk->current_agent, alpha, icon, user_termination_cb, stk, NULL); |