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

Commit 1670a992 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...

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

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

Change-Id: Ica5fb681dc96dfe06e8f7def5d73c0192d910045
parents 50b1e58e 649213e0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2166,6 +2166,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",