Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_apps_Stk
Commits
3420f3cc
Commit
3420f3cc
authored
12 years ago
by
Wink Saville
Committed by
android code review
12 years ago
Browse files
Options
Download
Plain Diff
Merge "No response sent when backlight is OFF"
parents
af0dd9f0
99fccc1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/com/android/stk/ToneDialog.java
src/com/android/stk/ToneDialog.java
+5
-2
No files found.
src/com/android/stk/ToneDialog.java
View file @
3420f3cc
...
...
@@ -38,6 +38,7 @@ public class ToneDialog extends Activity {
TextMessage
toneMsg
=
null
;
ToneSettings
settings
=
null
;
TonePlayer
player
=
null
;
boolean
mIsResponseSent
=
false
;
/**
* Handler used to stop tones from playing when the duration ends.
...
...
@@ -98,8 +99,9 @@ public class ToneDialog extends Activity {
@Override
protected
void
onDestroy
()
{
super
.
onDestroy
();
mToneStopper
.
removeMessages
(
MSG_ID_STOP_TONE
);
if
(
mIsResponseSent
)
{
mToneStopper
.
removeMessages
(
MSG_ID_STOP_TONE
);
}
player
.
stop
();
player
.
release
();
mVibrator
.
cancel
();
...
...
@@ -129,5 +131,6 @@ public class ToneDialog extends Activity {
args
.
putInt
(
StkAppService
.
OPCODE
,
StkAppService
.
OP_RESPONSE
);
args
.
putInt
(
StkAppService
.
RES_ID
,
resId
);
startService
(
new
Intent
(
this
,
StkAppService
.
class
).
putExtras
(
args
));
mIsResponseSent
=
true
;
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment