[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
(cherry picked from commit 151d5a3c83)
This commit is contained in:
cosmohsieh
2019-04-11 11:53:46 +08:00
committed by Cosmo Hsieh
parent f93ca46ea7
commit 4025c74f97

View File

@@ -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);