summaryrefslogtreecommitdiffstats
path: root/packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java
diff options
context:
space:
mode:
Diffstat (limited to 'packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java')
-rw-r--r--packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java25
1 files changed, 17 insertions, 8 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java b/packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java
index 3130875..4cef286 100644
--- a/packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java
+++ b/packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java
@@ -16,7 +16,11 @@
package com.android.settingslib.wifi;
+import android.app.AppGlobals;
import android.content.Context;
+import android.content.pm.ApplicationInfo;
+import android.content.pm.IPackageManager;
+import android.content.pm.PackageManager;
import android.net.ConnectivityManager;
import android.net.Network;
import android.net.NetworkCapabilities;
@@ -30,17 +34,15 @@ import android.net.wifi.WifiConfiguration.KeyMgmt;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.os.Bundle;
-import android.text.TextUtils;
import android.os.RemoteException;
import android.os.ServiceManager;
+import android.os.UserHandle;
+import android.text.Spannable;
+import android.text.SpannableString;
+import android.text.TextUtils;
+import android.text.style.TtsSpan;
import android.util.Log;
import android.util.LruCache;
-import android.content.pm.ApplicationInfo;
-import android.content.pm.IPackageManager;
-import android.content.pm.PackageManager;
-import android.os.UserHandle;
-import android.os.RemoteException;
-import android.app.AppGlobals;
import com.android.settingslib.R;
@@ -280,10 +282,17 @@ public class AccessPoint implements Comparable<AccessPoint> {
}
}
- public String getSsid() {
+ public String getSsidStr() {
return ssid;
}
+ public CharSequence getSsid() {
+ SpannableString str = new SpannableString(ssid);
+ str.setSpan(new TtsSpan.VerbatimBuilder(ssid).build(), 0, ssid.length(),
+ Spannable.SPAN_INCLUSIVE_INCLUSIVE);
+ return str;
+ }
+
public String getConfigName() {
if (mConfig != null && mConfig.isPasspoint()) {
return mConfig.providerFriendlyName;