From 15d8e77ee28b850b9fddd328ff26a296a447c9b5 Mon Sep 17 00:00:00 2001 From: allenwtsu Date: Mon, 6 Jun 2022 14:30:33 +0800 Subject: [PATCH] Apply SIMPLE strategy to TextView's description Bug: 258510998 Test: by manual Change-Id: Ic6e09e9c99a2f75505947d1cf79391a81d44ea4a Merged-In: Ic6e09e9c99a2f75505947d1cf79391a81d44ea4a (cherry picked from commit 63a775a214d9205a1848f8da17539a26424bd307) --- .../com/android/systemui/qs/tiles/dialog/InternetDialog.java | 2 ++ 1 file changed, 2 insertions(+) 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 0dfb2f4063a97..ad739cc4a261d 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.SubscriptionManager; 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 @@ public class InternetDialog extends SystemUIDialog implements 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);