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

Commit fc3a1ac9 authored by gang.huang's avatar gang.huang
Browse files

Ignore null action in WebViewUpdateService.

Bug: 376782061
Test: Manual.
Change-Id: I72e48ba4687ac7e12482e2a6f63a4a97a5420d4d
parent e4f54266
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -84,8 +84,13 @@ public class WebViewUpdateService extends SystemService {
        mWebViewUpdatedReceiver = new BroadcastReceiver() {
                @Override
                public void onReceive(Context context, Intent intent) {
                    final String action = intent.getAction();
                    if (action == null) {
                        return;
                    }

                    int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL);
                    switch (intent.getAction()) {
                    switch (action) {
                        case Intent.ACTION_PACKAGE_REMOVED:
                            // When a package is replaced we will receive two intents, one
                            // representing the removal of the old package and one representing the