}
{
- if(get_call_hungup_flag()>=2)
+ if(get_call_hungup_flag()>=1)
{
cat1_handle_call_disconnected((char *)CallerLogModel::GetInstance()->GetPhoneNumber().c_str());
}
TransCallToMobilePhone();
return;
}
-
+
CallerLogModel::GetInstance()->SetDialingStatus("正在拨号");
CallerLogModel::GetInstance()->SetMakePhoneStatus(true);
return allSlices_[allSlices_.size() - 2];
}
+
+
void SetCurSlicePriority(const uint16_t priority) {
curSlicePriority_ = priority;
}
ChangeSlice(sliceId,transitionId,priority); // 切换到新的Slice
}
+ uint16_t GettopSliceId(void) {
+ if (!backStack_.empty() ) {
+ return backStack_.top();
+ }
+ return 0;
+ }
+
+
// 处理后退操作
/// @brief 处理后退操作。
if (targetSliceId == VIEW_INCOMING_CALL)
{
uint16_t id=GetCurSliceId();
- if(id!=VIEW_INCOMING_CALL)
+ if(id==VIEW_REBOOTANDSHUTDOWN && VIEW_INCOMING_CALL==GettopSliceId())
+ {
+ ClearSliceIdStack();
+ }
+
+ if(id!=VIEW_INCOMING_CALL)
make_phone_push(id);
}
// showsStackSliceId();
{
if(sos_dail_falg)
{
+ if(OHOS::get_sos_number_count()<=0)
+ {
+ sos_dail_falg=0;
+ return;
+ }
+
printf("sos dial %d\r\n",sos_dail_falg);
#if SOS_TEST_FLAG
if(1)
void start_SOS_phone_dail(void)
{
+ if(OHOS::get_sos_number_count()<=0)
+ {
+ return;
+ }
#if SOS_TEST_FLAG
if(1)
#else