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

Commit 649213e0 authored by Taeun Kim's avatar Taeun Kim Committed by Automerger Merge Worker
Browse files

Fix NullPointerException by 'adb shell service call uimode 1' am: a62ca144 am: 74309884

Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/2026103

Change-Id: I9003026585090d82e72b0a3d4fd0596e2c91c5fb
parents f6ac981a 74309884
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2185,6 +2185,10 @@ public class InCallController extends CallsManagerListenerBase implements
    public void handleCarModeChange(int priority, String packageName, boolean isCarMode) {
        Log.i(this, "handleCarModeChange: packageName=%s, priority=%d, isCarMode=%b",
                packageName, priority, isCarMode);
        if (packageName == null) {
            Log.i(this, "handleCarModeChange: Got null packageName, ignoring");
            return;
        }
        // Don't ignore the signal if we are disabling car mode; package may be uninstalled.
        if (isCarMode && !isCarModeInCallService(packageName)) {
            Log.i(this, "handleCarModeChange: not a valid InCallService; packageName=%s",