Merge "Fixed AccessibilityServiceInfo.getId()" into udc-dev

This commit is contained in:
TreeHugger Robot
2023-04-05 18:49:10 +00:00
committed by Android (Google) Code Review

View File

@@ -860,10 +860,10 @@ public class AccessibilityServiceInfo implements Parcelable {
* <p>
* <strong>Generated by the system.</strong>
* </p>
* @return The id.
* @return The id (or {@code null} if the component is not set yet).
*/
public String getId() {
return mComponentName.flattenToShortString();
return mComponentName == null ? null : mComponentName.flattenToShortString();
}
/**