Merge "Fix the accessibility shortcut funtionaility."

This commit is contained in:
Kaiqiang Wang
2022-09-16 08:55:30 +00:00
committed by Android (Google) Code Review

View File

@@ -183,7 +183,7 @@ public class AccessibilityUtils {
final String currentShortcutServiceId = Settings.Secure.getStringForUser(
context.getContentResolver(), Settings.Secure.ACCESSIBILITY_SHORTCUT_TARGET_SERVICE,
userId);
if (currentShortcutServiceId != null) {
if (!TextUtils.isEmpty(currentShortcutServiceId)) {
return currentShortcutServiceId;
}
return context.getString(R.string.config_defaultAccessibilityService);