comparison src/ui/bmi/mmiIdle.c @ 57:0334bd34386c

mmiIdle.c: fix for the bogus editor state
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 21 Oct 2020 02:22:44 +0000
parents eabd1ac0fdb7
children c93e02568273
comparison
equal deleted inserted replaced
56:eabd1ac0fdb7 57:0334bd34386c
520 //Timer for battery charging animation 520 //Timer for battery charging animation
521 extern MfwHnd battery_charging_animate; 521 extern MfwHnd battery_charging_animate;
522 static int homezoneFlag = 0; //Jun 14, 2005 REF: MMI-FIX-30439 x0018858 522 static int homezoneFlag = 0; //Jun 14, 2005 REF: MMI-FIX-30439 x0018858
523 // Added a flag. 523 // Added a flag.
524 524
525 #if 0 /* removed in FreeCalypso */
525 //Jun 24, 2005 MMI-FIX-30973 x0018858 526 //Jun 24, 2005 MMI-FIX-30973 x0018858
526 //Global to copy the New CB msg tag. 527 //Global to copy the New CB msg tag.
527 char tag_zone[94]; 528 char tag_zone[94];
529 #endif
528 530
529 //x0pleela 09 Feb, 2006 ER: OMAPS00065203 531 //x0pleela 09 Feb, 2006 ER: OMAPS00065203
530 #define SPN 0 /* SPN to be displayed on Idle screen*/ 532 #define SPN 0 /* SPN to be displayed on Idle screen*/
531 #define PLMN 1 /* PLMN name to be displayed on Idle screen*/ 533 #define PLMN 1 /* PLMN name to be displayed on Idle screen*/
532 534
3131 break; 3133 break;
3132 3134
3133 default: 3135 default:
3134 break; 3136 break;
3135 } 3137 }
3138
3139 #if 0 /* removed in FreeCalypso */
3136 //Jun 24, 2005 MMI-FIX-30973 x0018858 3140 //Jun 24, 2005 MMI-FIX-30973 x0018858
3137 //Added code to handle the display of homezone/cityzone tag. 3141 //Added code to handle the display of homezone/cityzone tag.
3138 //Begin 30973 3142 //Begin 30973
3139 //Check to see if there are any new sms/ missed calls and confirm that the screen is clean. 3143 //Check to see if there are any new sms/ missed calls and confirm that the screen is clean.
3140 if ( ((smsidle_get_unread_sms_available() == 0) 3144 if ( ((smsidle_get_unread_sms_available() == 0)
3148 winShow(idle_data.win); 3152 winShow(idle_data.win);
3149 3153
3150 } 3154 }
3151 } 3155 }
3152 //End 30973 3156 //End 30973
3157 #endif
3153 3158
3154 return MFW_EVENT_CONSUMED; 3159 return MFW_EVENT_CONSUMED;
3155 } 3160 }
3156 3161
3157 3162
3333 if(cbch_string NEQ NULL) 3338 if(cbch_string NEQ NULL)
3334 { 3339 {
3335 memset(idle_data.incoming_cb_msg, '\0',MAX_CBMSG_LEN); 3340 memset(idle_data.incoming_cb_msg, '\0',MAX_CBMSG_LEN);
3336 strncpy((char *)idle_data.incoming_cb_msg, (char *)cbch_string, MAX_CBMSG_LEN); 3341 strncpy((char *)idle_data.incoming_cb_msg, (char *)cbch_string, MAX_CBMSG_LEN);
3337 3342
3343 #if 0 /* removed in FreeCalypso */
3338 //Jun 24, 2005 MMI-FIX-30973 x0018858 3344 //Jun 24, 2005 MMI-FIX-30973 x0018858
3339 // Copy the tag string on to a global variable for display later. 3345 // Copy the tag string on to a global variable for display later.
3340 //Begin 30973 3346 //Begin 30973
3341 memset(tag_zone, '\0',MAX_CBMSG_LEN); 3347 memset(tag_zone, '\0',MAX_CBMSG_LEN);
3342 strncpy((char *)tag_zone, (char *)idle_data.incoming_cb_msg, MAX_CBMSG_LEN); 3348 strncpy((char *)tag_zone, (char *)idle_data.incoming_cb_msg, MAX_CBMSG_LEN);
3343 tag_zone[MAX_CBMSG_LEN -1]= '\0'; 3349 tag_zone[MAX_CBMSG_LEN -1]= '\0';
3344 //End 30973 3350 //End 30973
3351 #endif
3352
3345 /* SPR#1428 - SH - New Editor changes */ 3353 /* SPR#1428 - SH - New Editor changes */
3346 #ifdef NEW_EDITOR 3354 #ifdef NEW_EDITOR
3347 if (!idle_data.editor) 3355 if (!idle_data.editor)
3348 { 3356 {
3349 idle_data.editor = ATB_edit_Create (&idle_data.editor_attr2,0); 3357 idle_data.editor = ATB_edit_Create (&idle_data.editor_attr2,0);
4189 */ 4197 */
4190 /*NM, 26.3.02*/ 4198 /*NM, 26.3.02*/
4191 /* SPR#1428 - SH - New Editor changes */ 4199 /* SPR#1428 - SH - New Editor changes */
4192 #ifdef NEW_EDITOR 4200 #ifdef NEW_EDITOR
4193 ATB_edit_Destroy(data->editor); 4201 ATB_edit_Destroy(data->editor);
4202 data->editor = 0;
4194 #else/* NEW_EDITOR */ 4203 #else/* NEW_EDITOR */
4195 edt_delete(data->edt); 4204 edt_delete(data->edt);
4205 data->edt = 0;
4196 #endif /* NEW_EDITOR */ 4206 #endif /* NEW_EDITOR */
4197 kbd_delete(data->kbd); 4207 kbd_delete(data->kbd);
4198 kbd_delete(data->kbd_long); 4208 kbd_delete(data->kbd_long);
4199 /* 4209 /*
4200 * Delete WIN Handler 4210 * Delete WIN Handler