commit | 15d8e77ee28b850b9fddd328ff26a296a447c9b5 | [log] [tgz] |
---|---|---|
author | allenwtsu <allenwtsu@google.com> | Mon Jun 06 14:30:33 2022 +0800 |
committer | Ling Ma <linggm@google.com> | Wed Nov 09 22:02:38 2022 +0000 |
tree | 25164aeb9c93c96819364bb71b219c99fa18fb48 | |
parent | d57db4f0b7e618f8bcd662a20e0a38c8a682fb5e [diff] |
Apply SIMPLE strategy to TextView's description Bug: 258510998 Test: by manual Change-Id: Ic6e09e9c99a2f75505947d1cf79391a81d44ea4a Merged-In: Ic6e09e9c99a2f75505947d1cf79391a81d44ea4a (cherry picked from commit 63a775a214d9205a1848f8da17539a26424bd307)
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialog.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialog.java index 0dfb2f4..ad739cc 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialog.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialog.java
@@ -32,6 +32,7 @@ import android.telephony.TelephonyDisplayInfo; import android.telephony.TelephonyManager; import android.text.Html; +import android.text.Layout; import android.text.TextUtils; import android.text.method.LinkMovementMethod; import android.util.Log; @@ -397,6 +398,7 @@ if (!TextUtils.isEmpty(summary)) { mMobileSummaryText.setText( Html.fromHtml(summary, Html.FROM_HTML_MODE_LEGACY)); + mMobileSummaryText.setBreakStrategy(Layout.BREAK_STRATEGY_SIMPLE); mMobileSummaryText.setVisibility(View.VISIBLE); } else { mMobileSummaryText.setVisibility(View.GONE);