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

Commit 6160bff4 authored by Peiyong Lin's avatar Peiyong Lin
Browse files

Set ANGLE package for toast message.

Toast message should have a target package that receives and resolves
the intent, otherwise it will be sent to all components in all packages
which could result in crashes.

Bug: b/318460567
Test: manual
Change-Id: I9918ae7d273aa0bda6a39294bba878d9b58cf1b5
parent 1e067eff
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -673,6 +673,7 @@ public class GraphicsEnvironment {
        if (anglePkg.isEmpty()) {
            return;
        }
        intent.setPackage(anglePkg);

        context.sendOrderedBroadcast(intent, null, new BroadcastReceiver() {
            @Override