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

Commit 74309884 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

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

Change-Id: Ibd3faa9181261014d718bcd7c4c23d95f6e431fa
parents 95d5d110 a62ca144
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2175,6 +2175,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",