OSDN Git Service

QS: Only show summary for active wifi
authorJason Monk <jmonk@google.com>
Tue, 26 May 2015 16:54:12 +0000 (12:54 -0400)
committerJason Monk <jmonk@google.com>
Tue, 26 May 2015 16:54:12 +0000 (12:54 -0400)
Bug: 20432208
Change-Id: Iedf6e4d102e64c53a633f8d377b5eb57768b1f17

packages/SystemUI/src/com/android/systemui/qs/tiles/WifiTile.java

index 9504ea3..9bc5b75 100644 (file)
@@ -326,7 +326,7 @@ public class WifiTile extends QSTile<QSTile.SignalState> {
                     item.tag = ap;
                     item.icon = mWifiController.getIcon(ap);
                     item.line1 = ap.getSsid();
-                    item.line2 = ap.getSummary();
+                    item.line2 = ap.isActive() ? ap.getSummary() : null;
                     item.overlay = ap.getSecurity() != AccessPoint.SECURITY_NONE
                             ? mContext.getDrawable(R.drawable.qs_ic_wifi_lock)
                             : null;