Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7be2041d authored by Pengquan Meng's avatar Pengquan Meng
Browse files

Corrects broadcast area for geo-fencing trigger message

We should use the union of the broadcast area for all cell broadcast
when it's not empty.

Bug: 141177480
Test: build & manual test
Change-Id: I742990eb6f00472c94b4afab8a74a5e113d235a7
parent 319c12bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ public class GsmCellBroadcastHandler extends CellBroadcastHandler {
                broadcastMessage(cbMessages, cbMessageUris);
            } else {
                for (int i = 0; i < cbMessages.size(); i++) {
                    List<Geometry> broadcastArea = commonBroadcastArea.isEmpty()
                    List<Geometry> broadcastArea = !commonBroadcastArea.isEmpty()
                            ? commonBroadcastArea : cbMessages.get(i).getGeometries();
                    if (broadcastArea == null || broadcastArea.isEmpty()) {
                        broadcastMessage(cbMessages.get(i), cbMessageUris.get(i));