Loading src/com/android/launcher3/BubbleTextView.java +2 −1 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.icu.text.MessageFormat; import android.text.TextPaint; import android.text.TextUtils; import android.text.TextUtils.TruncateAt; import android.util.AttributeSet; import android.util.Property; Loading Loading @@ -785,7 +786,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, invalidate(); } } if (itemInfo.contentDescription != null) { if (!TextUtils.isEmpty(itemInfo.contentDescription)) { if (itemInfo.isDisabled()) { setContentDescription(getContext().getString(R.string.disabled_app_label, itemInfo.contentDescription)); Loading src/com/android/launcher3/Utilities.java +2 −1 Original line number Diff line number Diff line Loading @@ -460,9 +460,10 @@ public final class Utilities { * Trims the string, removing all whitespace at the beginning and end of the string. * Non-breaking whitespaces are also removed. */ @NonNull public static String trim(CharSequence s) { if (s == null) { return null; return ""; } // Just strip any sequence of whitespace or java space characters from the beginning and end Loading src/com/android/launcher3/model/LoaderCursor.java +1 −2 Original line number Diff line number Diff line Loading @@ -202,8 +202,7 @@ public class LoaderCursor extends CursorWrapper { * Returns the title or empty string */ private String getTitle() { String title = getString(titleIndex); return TextUtils.isEmpty(title) ? "" : Utilities.trim(title); return Utilities.trim(getString(titleIndex)); } /** Loading Loading
src/com/android/launcher3/BubbleTextView.java +2 −1 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.icu.text.MessageFormat; import android.text.TextPaint; import android.text.TextUtils; import android.text.TextUtils.TruncateAt; import android.util.AttributeSet; import android.util.Property; Loading Loading @@ -785,7 +786,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver, invalidate(); } } if (itemInfo.contentDescription != null) { if (!TextUtils.isEmpty(itemInfo.contentDescription)) { if (itemInfo.isDisabled()) { setContentDescription(getContext().getString(R.string.disabled_app_label, itemInfo.contentDescription)); Loading
src/com/android/launcher3/Utilities.java +2 −1 Original line number Diff line number Diff line Loading @@ -460,9 +460,10 @@ public final class Utilities { * Trims the string, removing all whitespace at the beginning and end of the string. * Non-breaking whitespaces are also removed. */ @NonNull public static String trim(CharSequence s) { if (s == null) { return null; return ""; } // Just strip any sequence of whitespace or java space characters from the beginning and end Loading
src/com/android/launcher3/model/LoaderCursor.java +1 −2 Original line number Diff line number Diff line Loading @@ -202,8 +202,7 @@ public class LoaderCursor extends CursorWrapper { * Returns the title or empty string */ private String getTitle() { String title = getString(titleIndex); return TextUtils.isEmpty(title) ? "" : Utilities.trim(title); return Utilities.trim(getString(titleIndex)); } /** Loading