summaryrefslogtreecommitdiff
path: root/packages/SettingsLib/src/com/android/settingslib/Utils.java
diff options
context:
space:
mode:
authorScott Lobdell <slobdell@google.com>2020-09-28 18:18:22 -0700
committerJustin DeMartino <jjdemartino@google.com>2020-10-09 12:51:41 -0700
commite62f49bda9d0941f71f93c3481128ef19353bbb8 (patch)
tree216f1e70fa887bcbb8451e9712f8e425d0a625f7 /packages/SettingsLib/src/com/android/settingslib/Utils.java
parent27e7f8c2aa4ce0a2f59b3bf1969b06bfd1e9ebca (diff)
Add overload for getWifiIconResource
Add overload for getWifiIconResource to match SP1A.200921.001 changes in packages/apps/Settings/src/com/android/settings/wifi/details2/WifiDetailPreferenceController2.java Bug: 170343971 Change-Id: Ibd30324dd3c72e57123fc7bc921f935859877984
Diffstat (limited to 'packages/SettingsLib/src/com/android/settingslib/Utils.java')
-rw-r--r--packages/SettingsLib/src/com/android/settingslib/Utils.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/Utils.java b/packages/SettingsLib/src/com/android/settingslib/Utils.java
index 25594b77f1c2..2232af32dd12 100644
--- a/packages/SettingsLib/src/com/android/settingslib/Utils.java
+++ b/packages/SettingsLib/src/com/android/settingslib/Utils.java
@@ -396,6 +396,18 @@ public class Utils {
/**
* Returns the Wifi icon resource for a given RSSI level.
*
+ * @param showX True if a connected Wi-Fi network has the problem which should show Pie+x
+ * signal icon to users.
+ * @param level The number of bars to show (0-4)
+ * @throws IllegalArgumentException if an invalid RSSI level is given.
+ */
+ public static int getWifiIconResource(boolean showX, int level) {
+ return getWifiIconResource(showX, level, 0 /* standard */, false /* isReady */);
+ }
+
+ /**
+ * Returns the Wifi icon resource for a given RSSI level.
+ *
* @param level The number of bars to show (0-4)
* @throws IllegalArgumentException if an invalid RSSI level is given.
*/