Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/TextViewTransformState.java +4 −3 Original line number Diff line number Diff line Loading @@ -35,10 +35,8 @@ public class TextViewTransformState extends TransformState { @Override public void initFrom(View view, TransformInfo transformInfo) { super.initFrom(view, transformInfo); if (view instanceof TextView) { mText = (TextView) view; } } @Override protected boolean sameAs(TransformState otherState) { Loading Loading @@ -94,6 +92,9 @@ public class TextViewTransformState extends TransformState { return false; } TextViewTransformState otherTvs = (TextViewTransformState) otherState; if (!TextUtils.equals(mText.getText(), otherTvs.mText.getText())) { return false; } int lineCount = mText.getLineCount(); return lineCount == 1 && lineCount == otherTvs.mText.getLineCount() && getEllipsisCount() == otherTvs.getEllipsisCount() Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/TextViewTransformState.java +4 −3 Original line number Diff line number Diff line Loading @@ -35,10 +35,8 @@ public class TextViewTransformState extends TransformState { @Override public void initFrom(View view, TransformInfo transformInfo) { super.initFrom(view, transformInfo); if (view instanceof TextView) { mText = (TextView) view; } } @Override protected boolean sameAs(TransformState otherState) { Loading Loading @@ -94,6 +92,9 @@ public class TextViewTransformState extends TransformState { return false; } TextViewTransformState otherTvs = (TextViewTransformState) otherState; if (!TextUtils.equals(mText.getText(), otherTvs.mText.getText())) { return false; } int lineCount = mText.getLineCount(); return lineCount == 1 && lineCount == otherTvs.mText.getLineCount() && getEllipsisCount() == otherTvs.getEllipsisCount() Loading