Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Merge "Special case for SAT Display Text"
Browse files Browse the repository at this point in the history
  • Loading branch information
Wink Saville authored and Gerrit Code Review committed Mar 28, 2014
2 parents e40e4d2 + cfe4d7f commit 2845090
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/com/android/stk/StkDialogActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.android.stk;

import com.android.internal.telephony.cat.CatLog;
import com.android.internal.telephony.cat.TextMessage;

import android.app.Activity;
Expand Down Expand Up @@ -126,6 +127,23 @@ public boolean onKeyDown(int keyCode, KeyEvent event) {
@Override
public void onResume() {
super.onResume();

/*
* The user should be shown the message forever or until some high
* priority event occurs (such as incoming call, MMI code execution
* etc as mentioned in ETSI 102.223, 6.4.1).
*
* Since mTextMsg.responseNeeded is false (because the response has
* already been sent) and duration of the dialog is zero and userClear
* is true, don't set the timeout.
*/
if (!mTextMsg.responseNeeded &&
StkApp.calculateDurationInMilis(mTextMsg.duration) == 0 &&
mTextMsg.userClear) {
CatLog.d(this, "User should clear text..show message forever");
return;
}

startTimeOut(mTextMsg.userClear);
}

Expand Down

0 comments on commit 2845090

Please sign in to comment.