summaryrefslogtreecommitdiff
path: root/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java')
-rw-r--r--src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java b/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java
index c57faa455..0a124faa1 100644
--- a/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java
+++ b/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java
@@ -490,8 +490,8 @@ public class CellBroadcastAlertDialog extends Activity {
}
@Override
- protected void onStop() {
- Log.d(TAG, "onStop called");
+ protected void onUserLeaveHint() {
+ Log.d(TAG, "onUserLeaveHint called");
// When the activity goes in background (eg. clicking Home button, dismissed by outside
// touch if enabled), send notification.
// Avoid doing this when activity will be recreated because of orientation change or if
@@ -507,9 +507,7 @@ public class CellBroadcastAlertDialog extends Activity {
CellBroadcastAlertService.addToNotificationBar(latestMessage, messageList,
getApplicationContext(), true, true, false);
}
- // Do not stop the audio here. Pressing power button should turn off screen but should not
- // interrupt the audio/vibration
- super.onStop();
+ super.onUserLeaveHint();
}
@Override
@@ -715,7 +713,9 @@ public class CellBroadcastAlertDialog extends Activity {
Context context = getApplicationContext();
int titleId = CellBroadcastResources.getDialogTitleResource(context, message);
- Resources res = CellBroadcastSettings.getResources(context, message.getSubscriptionId());
+ Resources res = CellBroadcastSettings.getResourcesByOperator(context,
+ message.getSubscriptionId(),
+ CellBroadcastReceiver.getRoamingOperatorSupported(context));
CellBroadcastChannelManager channelManager = new CellBroadcastChannelManager(
this, message.getSubscriptionId());