diff options
| author | Brian Attwell <brianattwell@google.com> | 2014-06-16 22:07:31 -0700 |
|---|---|---|
| committer | Brian Attwell <brianattwell@google.com> | 2014-06-16 22:08:50 -0700 |
| commit | 08b0d9a980a0dbb7ea2d2f95b0827201a244507d (patch) | |
| tree | 4e5690a6c0ce9902c5fec4bae6327fbf85590c56 /tests | |
| parent | 78f053bb8c3caf344dcf0858461edc06e1c26b27 (diff) | |
| download | packages_apps_Contacts-08b0d9a980a0dbb7ea2d2f95b0827201a244507d.tar.gz packages_apps_Contacts-08b0d9a980a0dbb7ea2d2f95b0827201a244507d.tar.bz2 packages_apps_Contacts-08b0d9a980a0dbb7ea2d2f95b0827201a244507d.zip | |
Remove unused class: TextWithHighlightingAnimation
TextWithHighlightingAnimation referenced internal attributes.
Fortunately, fixing this reference was easy: delete the entire
class and everything that uses it.
Bug: 15675746
Change-Id: Id43cea63316ba3af837ac82b76114f7ea1b5670b
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/src/com/android/contacts/format/TestTextWithHighlightingFactory.java | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/tests/src/com/android/contacts/format/TestTextWithHighlightingFactory.java b/tests/src/com/android/contacts/format/TestTextWithHighlightingFactory.java deleted file mode 100644 index 9dbd36402..000000000 --- a/tests/src/com/android/contacts/format/TestTextWithHighlightingFactory.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2011 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.android.contacts.format; - -import android.database.CharArrayBuffer; -import android.graphics.Typeface; -import android.test.suitebuilder.annotation.SmallTest; -import android.text.SpannableStringBuilder; -import android.text.style.StyleSpan; - -import com.android.contacts.widget.TextWithHighlighting; -import com.android.contacts.widget.TextWithHighlightingFactory; - -/** A factory for {@link TextWithHighlighting} that wraps its parts in italics. */ -@SmallTest -public final class TestTextWithHighlightingFactory implements TextWithHighlightingFactory { - /** A {@link TextWithHighlighting} implementation that wraps its parts in italics. */ - private final static class TestTextWithHighlighting extends SpannableStringBuilder - implements TextWithHighlighting { - @Override - public void setText(CharArrayBuffer baseText, CharArrayBuffer highlightedText) { - append(new String(baseText.data, 0, baseText.sizeCopied)); - append(' '); - append(new String(highlightedText.data, 0, highlightedText.sizeCopied)); - setSpan(new StyleSpan(Typeface.ITALIC), 0, baseText.sizeCopied, 0); - setSpan(new StyleSpan(Typeface.ITALIC), baseText.sizeCopied + 1, - baseText.sizeCopied + 1 + highlightedText.sizeCopied, 0); - } - } - - @Override - public TextWithHighlighting createTextWithHighlighting() { - return new TestTextWithHighlighting(); - } -} |
