diff options
author | Santos Cordon <santoscordon@google.com> | 2014-07-21 00:00:44 -0700 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2014-07-21 18:05:52 +0000 |
commit | 9cc383353e5b8ea578e2a40245b8bd5186470afa (patch) | |
tree | 607173d245b1507a77cc8324259c4b436eb0933b /telecomm | |
parent | 6f4d82100388dbf22f2a6888004549bcb9efadf6 (diff) | |
download | frameworks_base-9cc383353e5b8ea578e2a40245b8bd5186470afa.zip frameworks_base-9cc383353e5b8ea578e2a40245b8bd5186470afa.tar.gz frameworks_base-9cc383353e5b8ea578e2a40245b8bd5186470afa.tar.bz2 |
Change display Strings to CharSequence (1/2)
Bug: 16416927
Change-Id: I81cd3572f3931cd97611621a1db12bea165bda56
Diffstat (limited to 'telecomm')
-rw-r--r-- | telecomm/java/android/telecomm/PhoneAccount.java | 22 | ||||
-rw-r--r-- | telecomm/java/android/telecomm/StatusHints.java | 10 |
2 files changed, 16 insertions, 16 deletions
diff --git a/telecomm/java/android/telecomm/PhoneAccount.java b/telecomm/java/android/telecomm/PhoneAccount.java index 0570d18..1ede86e 100644 --- a/telecomm/java/android/telecomm/PhoneAccount.java +++ b/telecomm/java/android/telecomm/PhoneAccount.java @@ -70,8 +70,8 @@ public class PhoneAccount implements Parcelable { private final String mSubscriptionNumber; private final int mCapabilities; private final int mIconResId; - private final String mLabel; - private final String mShortDescription; + private final CharSequence mLabel; + private final CharSequence mShortDescription; private boolean mVideoCallingSupported; public PhoneAccount( @@ -80,8 +80,8 @@ public class PhoneAccount implements Parcelable { String subscriptionNumber, int capabilities, int iconResId, - String label, - String shortDescription, + CharSequence label, + CharSequence shortDescription, boolean supportsVideoCalling) { mAccountHandle = account; mHandle = handle; @@ -135,11 +135,11 @@ public class PhoneAccount implements Parcelable { } /** - * A short string label describing a {@code PhoneAccount}. + * A short label describing a {@code PhoneAccount}. * * @return A label for this {@code PhoneAccount}. */ - public String getLabel() { + public CharSequence getLabel() { return mLabel; } @@ -148,7 +148,7 @@ public class PhoneAccount implements Parcelable { * * @return A description for this {@code PhoneAccount}. */ - public String getShortDescription() { + public CharSequence getShortDescription() { return mShortDescription; } @@ -213,8 +213,8 @@ public class PhoneAccount implements Parcelable { out.writeString(mSubscriptionNumber); out.writeInt(mCapabilities); out.writeInt(mIconResId); - out.writeString(mLabel); - out.writeString(mShortDescription); + out.writeCharSequence(mLabel); + out.writeCharSequence(mShortDescription); out.writeInt(mVideoCallingSupported ? 1 : 0); } @@ -237,8 +237,8 @@ public class PhoneAccount implements Parcelable { mSubscriptionNumber = in.readString(); mCapabilities = in.readInt(); mIconResId = in.readInt(); - mLabel = in.readString(); - mShortDescription = in.readString(); + mLabel = in.readCharSequence(); + mShortDescription = in.readCharSequence(); mVideoCallingSupported = in.readInt() == 1; } } diff --git a/telecomm/java/android/telecomm/StatusHints.java b/telecomm/java/android/telecomm/StatusHints.java index 5e64bff..50f525a 100644 --- a/telecomm/java/android/telecomm/StatusHints.java +++ b/telecomm/java/android/telecomm/StatusHints.java @@ -34,11 +34,11 @@ import java.util.MissingResourceException; public final class StatusHints implements Parcelable { private final ComponentName mComponentName; - private final String mLabel; + private final CharSequence mLabel; private final int mIconId; private final Bundle mExtras; - public StatusHints(ComponentName componentName, String label, int iconId, Bundle extras) { + public StatusHints(ComponentName componentName, CharSequence label, int iconId, Bundle extras) { mComponentName = componentName; mLabel = label; mIconId = iconId; @@ -55,7 +55,7 @@ public final class StatusHints implements Parcelable { /** * @return The label displayed in the in-call UI. */ - public String getLabel() { + public CharSequence getLabel() { return mLabel; } @@ -88,7 +88,7 @@ public final class StatusHints implements Parcelable { @Override public void writeToParcel(Parcel out, int flags) { out.writeParcelable(mComponentName, flags); - out.writeString(mLabel); + out.writeCharSequence(mLabel); out.writeInt(mIconId); out.writeParcelable(mExtras, 0); } @@ -106,7 +106,7 @@ public final class StatusHints implements Parcelable { private StatusHints(Parcel in) { mComponentName = in.readParcelable(getClass().getClassLoader()); - mLabel = in.readString(); + mLabel = in.readCharSequence(); mIconId = in.readInt(); mExtras = (Bundle) in.readParcelable(getClass().getClassLoader()); } |