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

Commit 26f77602 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Checking whether ComponentName with current InputMethod is not null" into main

parents c9c97bec d8fdcc96
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;