From 151d5a3c83be36472c2028689fec24522372da49 Mon Sep 17 00:00:00 2001 From: cosmohsieh Date: Thu, 11 Apr 2019 11:53:46 +0800 Subject: [PATCH] [Network Connection] Show full SSID on list item Long SSID will be cut off, because ellipsized. Show full SSID to gain better UX. Bug: 130198869 Test: manual Change-Id: I14376ff7fb922439a2d664433a94740cc06cd99a --- .../android/settings/wifi/NetworkRequestDialogFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/wifi/NetworkRequestDialogFragment.java b/src/com/android/settings/wifi/NetworkRequestDialogFragment.java index 2a7ac17ab5b..eb7d78fd789 100644 --- a/src/com/android/settings/wifi/NetworkRequestDialogFragment.java +++ b/src/com/android/settings/wifi/NetworkRequestDialogFragment.java @@ -377,7 +377,9 @@ public class NetworkRequestDialogFragment extends InstrumentedDialogFragment imp final TextView titleView = view.findViewById(android.R.id.title); if (titleView != null) { - titleView.setText(accessPoint.getSsidStr()); + // Shows whole SSID for better UX. + titleView.setSingleLine(false); + titleView.setText(accessPoint.getTitle()); } final TextView summary = view.findViewById(android.R.id.summary);