Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15d8e77e authored by allenwtsu's avatar allenwtsu Committed by Ling Ma
Browse files

Apply SIMPLE strategy to TextView's description

Bug: 258510998
Test: by manual
Change-Id: Ic6e09e9c99a2f75505947d1cf79391a81d44ea4a
Merged-In: Ic6e09e9c99a2f75505947d1cf79391a81d44ea4a
(cherry picked from commit 63a775a2)
parent d57db4f0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);