Loading core/java/android/accessibilityservice/AccessibilityServiceInfo.java +1 −12 Original line number Original line Diff line number Diff line Loading @@ -550,11 +550,6 @@ public class AccessibilityServiceInfo implements Parcelable { */ */ private int mHtmlDescriptionRes; private int mHtmlDescriptionRes; /** * Non localized html description of the accessibility service. */ private String mNonLocalizedHtmlDescription; /** /** * Creates a new instance. * Creates a new instance. */ */ Loading Loading @@ -683,10 +678,6 @@ public class AccessibilityServiceInfo implements Parcelable { com.android.internal.R.styleable.AccessibilityService_htmlDescription); com.android.internal.R.styleable.AccessibilityService_htmlDescription); if (peekedValue != null) { if (peekedValue != null) { mHtmlDescriptionRes = peekedValue.resourceId; mHtmlDescriptionRes = peekedValue.resourceId; final CharSequence nonLocalizedHtmlDescription = peekedValue.coerceToString(); if (nonLocalizedHtmlDescription != null) { mNonLocalizedHtmlDescription = nonLocalizedHtmlDescription.toString().trim(); } } } asAttributes.recycle(); asAttributes.recycle(); } catch (NameNotFoundException e) { } catch (NameNotFoundException e) { Loading Loading @@ -919,7 +910,7 @@ public class AccessibilityServiceInfo implements Parcelable { @Nullable @Nullable public String loadHtmlDescription(@NonNull PackageManager packageManager) { public String loadHtmlDescription(@NonNull PackageManager packageManager) { if (mHtmlDescriptionRes == 0) { if (mHtmlDescriptionRes == 0) { return mNonLocalizedHtmlDescription; return null; } } final ServiceInfo serviceInfo = mResolveInfo.serviceInfo; final ServiceInfo serviceInfo = mResolveInfo.serviceInfo; Loading Loading @@ -1017,7 +1008,6 @@ public class AccessibilityServiceInfo implements Parcelable { parcel.writeInt(mAnimatedImageRes); parcel.writeInt(mAnimatedImageRes); parcel.writeInt(mHtmlDescriptionRes); parcel.writeInt(mHtmlDescriptionRes); parcel.writeString(mNonLocalizedDescription); parcel.writeString(mNonLocalizedDescription); parcel.writeString(mNonLocalizedHtmlDescription); } } private void initFromParcel(Parcel parcel) { private void initFromParcel(Parcel parcel) { Loading @@ -1039,7 +1029,6 @@ public class AccessibilityServiceInfo implements Parcelable { mAnimatedImageRes = parcel.readInt(); mAnimatedImageRes = parcel.readInt(); mHtmlDescriptionRes = parcel.readInt(); mHtmlDescriptionRes = parcel.readInt(); mNonLocalizedDescription = parcel.readString(); mNonLocalizedDescription = parcel.readString(); mNonLocalizedHtmlDescription = parcel.readString(); } } @Override @Override Loading core/res/res/values/attrs.xml +2 −2 Original line number Original line Diff line number Diff line Loading @@ -3774,7 +3774,7 @@ <attr name="animatedImageDrawable" format="reference"/> <attr name="animatedImageDrawable" format="reference"/> <!-- Html description of the accessibility service, to help users understand <!-- Html description of the accessibility service, to help users understand how the service can help them.--> how the service can help them.--> <attr name="htmlDescription" format="string"/> <attr name="htmlDescription" format="reference"/> <!-- Short description of the accessibility service purpose or behavior.--> <!-- Short description of the accessibility service purpose or behavior.--> <attr name="description" /> <attr name="description" /> Loading @@ -3795,7 +3795,7 @@ <attr name="animatedImageDrawable" format="reference"/> <attr name="animatedImageDrawable" format="reference"/> <!-- Html description of the target of accessibility shortcut purpose or behavior, to help <!-- Html description of the target of accessibility shortcut purpose or behavior, to help users understand how the target of accessibility shortcut can help them. --> users understand how the target of accessibility shortcut can help them. --> <attr name="htmlDescription" format="string"/> <attr name="htmlDescription" format="reference"/> </declare-styleable> </declare-styleable> <!-- Use <code>print-service</code> as the root tag of the XML resource that <!-- Use <code>print-service</code> as the root tag of the XML resource that Loading Loading
core/java/android/accessibilityservice/AccessibilityServiceInfo.java +1 −12 Original line number Original line Diff line number Diff line Loading @@ -550,11 +550,6 @@ public class AccessibilityServiceInfo implements Parcelable { */ */ private int mHtmlDescriptionRes; private int mHtmlDescriptionRes; /** * Non localized html description of the accessibility service. */ private String mNonLocalizedHtmlDescription; /** /** * Creates a new instance. * Creates a new instance. */ */ Loading Loading @@ -683,10 +678,6 @@ public class AccessibilityServiceInfo implements Parcelable { com.android.internal.R.styleable.AccessibilityService_htmlDescription); com.android.internal.R.styleable.AccessibilityService_htmlDescription); if (peekedValue != null) { if (peekedValue != null) { mHtmlDescriptionRes = peekedValue.resourceId; mHtmlDescriptionRes = peekedValue.resourceId; final CharSequence nonLocalizedHtmlDescription = peekedValue.coerceToString(); if (nonLocalizedHtmlDescription != null) { mNonLocalizedHtmlDescription = nonLocalizedHtmlDescription.toString().trim(); } } } asAttributes.recycle(); asAttributes.recycle(); } catch (NameNotFoundException e) { } catch (NameNotFoundException e) { Loading Loading @@ -919,7 +910,7 @@ public class AccessibilityServiceInfo implements Parcelable { @Nullable @Nullable public String loadHtmlDescription(@NonNull PackageManager packageManager) { public String loadHtmlDescription(@NonNull PackageManager packageManager) { if (mHtmlDescriptionRes == 0) { if (mHtmlDescriptionRes == 0) { return mNonLocalizedHtmlDescription; return null; } } final ServiceInfo serviceInfo = mResolveInfo.serviceInfo; final ServiceInfo serviceInfo = mResolveInfo.serviceInfo; Loading Loading @@ -1017,7 +1008,6 @@ public class AccessibilityServiceInfo implements Parcelable { parcel.writeInt(mAnimatedImageRes); parcel.writeInt(mAnimatedImageRes); parcel.writeInt(mHtmlDescriptionRes); parcel.writeInt(mHtmlDescriptionRes); parcel.writeString(mNonLocalizedDescription); parcel.writeString(mNonLocalizedDescription); parcel.writeString(mNonLocalizedHtmlDescription); } } private void initFromParcel(Parcel parcel) { private void initFromParcel(Parcel parcel) { Loading @@ -1039,7 +1029,6 @@ public class AccessibilityServiceInfo implements Parcelable { mAnimatedImageRes = parcel.readInt(); mAnimatedImageRes = parcel.readInt(); mHtmlDescriptionRes = parcel.readInt(); mHtmlDescriptionRes = parcel.readInt(); mNonLocalizedDescription = parcel.readString(); mNonLocalizedDescription = parcel.readString(); mNonLocalizedHtmlDescription = parcel.readString(); } } @Override @Override Loading
core/res/res/values/attrs.xml +2 −2 Original line number Original line Diff line number Diff line Loading @@ -3774,7 +3774,7 @@ <attr name="animatedImageDrawable" format="reference"/> <attr name="animatedImageDrawable" format="reference"/> <!-- Html description of the accessibility service, to help users understand <!-- Html description of the accessibility service, to help users understand how the service can help them.--> how the service can help them.--> <attr name="htmlDescription" format="string"/> <attr name="htmlDescription" format="reference"/> <!-- Short description of the accessibility service purpose or behavior.--> <!-- Short description of the accessibility service purpose or behavior.--> <attr name="description" /> <attr name="description" /> Loading @@ -3795,7 +3795,7 @@ <attr name="animatedImageDrawable" format="reference"/> <attr name="animatedImageDrawable" format="reference"/> <!-- Html description of the target of accessibility shortcut purpose or behavior, to help <!-- Html description of the target of accessibility shortcut purpose or behavior, to help users understand how the target of accessibility shortcut can help them. --> users understand how the target of accessibility shortcut can help them. --> <attr name="htmlDescription" format="string"/> <attr name="htmlDescription" format="reference"/> </declare-styleable> </declare-styleable> <!-- Use <code>print-service</code> as the root tag of the XML resource that <!-- Use <code>print-service</code> as the root tag of the XML resource that Loading