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

Commit f50e1f53 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Checking whether ComponentName with current InputMethod is not null"...

Merge "Checking whether ComponentName with current InputMethod is not null" into main am: 26f77602

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3367881



Change-Id: I1fdb9916ad14b6e455c66f4016103421cd24ae5d
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 87c34494 26f77602
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -536,8 +536,12 @@ public final class SensorPrivacyService extends SystemService {
                    user.getIdentifier());
            String inputMethodPackageName = null;
            if (inputMethodComponent != null) {
                inputMethodPackageName = ComponentName.unflattenFromString(
                        inputMethodComponent).getPackageName();
                ComponentName component = ComponentName.unflattenFromString(inputMethodComponent);
                if (component != null) {
                    inputMethodPackageName = component.getPackageName();
                } else {
                    Log.w(TAG, "Failed to parse inputMethodComponent: " + inputMethodComponent);
                }
            }

            int capability;