commit | 8cb5d156450958139e29c1280281ec750a00a7e7 | [log] [tgz] |
---|---|---|
author | Jack Yu <jackyu@google.com> | Wed Oct 23 11:35:32 2019 -0700 |
committer | Jack Yu <jackyu@google.com> | Wed Oct 23 11:35:32 2019 -0700 |
tree | 680ae640c90f83671f56fce4717206c38f45b5dc | |
parent | a3af8a5f502f1cdd546e7f7a065443a16756680a [diff] [blame] |
Code clean up Test: Manual Change-Id: I5b3620d1ae807455f3313b1564181f95b1202d46
diff --git a/src/com/android/cellbroadcastservice/GsmCellBroadcastHandler.java b/src/com/android/cellbroadcastservice/GsmCellBroadcastHandler.java index abcbc20..7a95397 100644 --- a/src/com/android/cellbroadcastservice/GsmCellBroadcastHandler.java +++ b/src/com/android/cellbroadcastservice/GsmCellBroadcastHandler.java
@@ -159,7 +159,9 @@ requestLocationUpdate(location -> { if (location == null) { // If the location is not available, broadcast the messages directly. - broadcastMessage(cbMessages, cbMessageUris, slotIndex); + for (int i = 0; i < cbMessages.size(); i++) { + broadcastMessage(cbMessages.get(i), cbMessageUris.get(i), slotIndex); + } } else { for (int i = 0; i < cbMessages.size(); i++) { List<Geometry> broadcastArea = !commonBroadcastArea.isEmpty()