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

Commit c21c4471 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 am: f50e1f53

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



Change-Id: I10ba30bb505778f65ce3c5be57cc37a0eb39edba
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 32879b68 f50e1f53
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;