diff options
author | Jake Hamby <jhamby@google.com> | 2012-10-08 19:41:30 -0700 |
---|---|---|
committer | Jake Hamby <jhamby@google.com> | 2012-10-12 14:47:59 -0700 |
commit | 57273ebfa13f96bf5aba9902b70e2b179fec9e4c (patch) | |
tree | 1355d9061b21f2f81a2c87a6eea51801be497c8d /src/com/android/cellbroadcastreceiver/CellBroadcastResources.java | |
parent | d2869a10f34780efe8eecfe2719faaa91494a1b3 (diff) | |
download | CellBroadcastReceiver-57273ebfa13f96bf5aba9902b70e2b179fec9e4c.tar.gz |
Multiple fixes to CMAS app.
* Allow screen to turn off after 30 seconds for emergency alerts.
* When multiple alerts are received, show them in reverse order.
* After showing the first CMAS alert received on device (other than
Presidential Alert), show opt-out dialog to allow user to
opt-in or out of the various levels of CMAS alert.
* Start/stop animating warning icon in activity pause/resume.
* When multiple non-emergency alerts are received, show them all
(most recent displayed first) when user selects the notification.
* For emergency alerts, start the dialog activity directly instead
of creating a PendingIntent and full screen notification.
* Correctly save/restore the list of alerts in the alert dialog
in onSaveInstanceState() when recreated after screen rotation.
* Fix test app to increment the message ID and to send the correct
alerts when multiple alerts are selected with 5 second delay.
Bug: 6993660
Bug: 7041847
Bug: 7045506
Change-Id: Ic3ec08f0ebd693244891a4bf3a29479b832c2a3e
Diffstat (limited to 'src/com/android/cellbroadcastreceiver/CellBroadcastResources.java')
-rw-r--r-- | src/com/android/cellbroadcastreceiver/CellBroadcastResources.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/cellbroadcastreceiver/CellBroadcastResources.java b/src/com/android/cellbroadcastreceiver/CellBroadcastResources.java index fedd15333..76d4b42b8 100644 --- a/src/com/android/cellbroadcastreceiver/CellBroadcastResources.java +++ b/src/com/android/cellbroadcastreceiver/CellBroadcastResources.java @@ -289,7 +289,7 @@ public class CellBroadcastResources { } } - if (cbm.isPublicAlertMessage()) { + if (CellBroadcastConfigService.isEmergencyAlertMessage(cbm)) { return R.string.pws_other_message_identifiers; } else { return R.string.cb_other_message_identifiers; |