comparison src/ui/bmi/mmiSmsIdle.c @ 171:4ef7466a72c9

mmiSmsIdle.c: trim some excessive empty lines
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 18 Jan 2021 01:33:09 +0000
parents 7160f0d005d2
children
comparison
equal deleted inserted replaced
170:6125210a379b 171:4ef7466a72c9
19 $Date: 25/10/00 19 $Date: 25/10/00
20 20
21 ******************************************************************************** 21 ********************************************************************************
22 22
23 Description: Implementation for MMI smsidle unsolicited event handling 23 Description: Implementation for MMI smsidle unsolicited event handling
24
25 24
26 25
27 ******************************************************************************** 26 ********************************************************************************
28 27
29 $History: MmiSmsIdle.c 28 $History: MmiSmsIdle.c
392 TRACE_EVENT ("smsidle_destroy() called twice"); 391 TRACE_EVENT ("smsidle_destroy() called twice");
393 return; 392 return;
394 } 393 }
395 } 394 }
396 } 395 }
397
398 396
399 397
400 /******************************************************************************* 398 /*******************************************************************************
401 399
402 $Function: smsidle_exec_cb 400 $Function: smsidle_exec_cb
489 /*clear buffers*/ 487 /*clear buffers*/
490 memset(sms_text_buffer, 0, STANDARD_EDITOR_SIZE); 488 memset(sms_text_buffer, 0, STANDARD_EDITOR_SIZE);
491 memset(text_buffer, 0, MAX_EDITOR_LEN); 489 memset(text_buffer, 0, MAX_EDITOR_LEN);
492 490
493 491
494
495
496
497 /*, if new editor use nice string-handling functions*/ 492 /*, if new editor use nice string-handling functions*/
498 493
499 main_text.data = (UBYTE*)text_buffer; 494 main_text.data = (UBYTE*)text_buffer;
500 /*set up text data stucture for main display string*/ 495 /*set up text data stucture for main display string*/
501 if (Mmi_getCurrentLanguage() == CHINESE_LANGUAGE) 496 if (Mmi_getCurrentLanguage() == CHINESE_LANGUAGE)
528 } 523 }
529 ATB_string_Length(&temp_text); 524 ATB_string_Length(&temp_text);
530 /*add name text into main display string*/ 525 /*add name text into main display string*/
531 ATB_string_Concat(&main_text, &temp_text); 526 ATB_string_Concat(&main_text, &temp_text);
532 } 527 }
533
534
535 528
536 sms_text_buffer[index++]='\n'; 529 sms_text_buffer[index++]='\n';
537 530
538 sms_text_buffer[index++]='0'+SmsMt->sctp.day[0]; 531 sms_text_buffer[index++]='0'+SmsMt->sctp.day[0];
539 sms_text_buffer[index++]='0'+SmsMt->sctp.day[1]; 532 sms_text_buffer[index++]='0'+SmsMt->sctp.day[1];
624 temp_text.dcs = ATB_DCS_ASCII;*/ 617 temp_text.dcs = ATB_DCS_ASCII;*/
625 618
626 ATB_string_Length(&temp_text); 619 ATB_string_Length(&temp_text);
627 /*Add date and time to main display string*/ 620 /*Add date and time to main display string*/
628 ATB_string_Concat(&main_text, &temp_text); 621 ATB_string_Concat(&main_text, &temp_text);
629
630
631 622
632 } 623 }
633 624
634 625
635 /******************************************************************************* 626 /*******************************************************************************
914 905
915 /*SPR 2512, convert message into a text string and then send to idle for display*/ 906 /*SPR 2512, convert message into a text string and then send to idle for display*/
916 smsidle_message_to_text(Message, temp_buffer_sms); 907 smsidle_message_to_text(Message, temp_buffer_sms);
917 addCBCH(temp_buffer_sms, IdleNewSmsMessage); 908 addCBCH(temp_buffer_sms, IdleNewSmsMessage);
918 909
919
920
921
922 } 910 }
923 else 911 else
924 { 912 {
925 TRACE_EVENT ("text_uncompressed"); 913 TRACE_EVENT ("text_uncompressed");
926 914
927
928 /*SPR 2512, convert message into a text string and then send to idle for display*/ 915 /*SPR 2512, convert message into a text string and then send to idle for display*/
929 smsidle_message_to_text(Message, temp_buffer_sms); 916 smsidle_message_to_text(Message, temp_buffer_sms);
930 addCBCH(temp_buffer_sms, IdleNewSmsMessage); 917 addCBCH(temp_buffer_sms, IdleNewSmsMessage);
931
932 918
933 } 919 }
934 /* 920 /*
935 ** SPR#1745 - End 921 ** SPR#1745 - End
936 */ 922 */
978 #ifdef NEPTUNE_BOARD 964 #ifdef NEPTUNE_BOARD
979 } 965 }
980 #endif 966 #endif
981 967
982 } 968 }
983
984 969
985 /*temp_buffer_sms will be freed in editor callback*/ 970 /*temp_buffer_sms will be freed in editor callback*/
986 971
987 } 972 }
988 } 973 }