The settings crash when it add the RTL mark on MEP message am: 7de5f99847
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/18482929 Change-Id: I9c2f7b7388b9281a5a90cd11155cbac14b950aef Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -460,13 +460,10 @@ public class ToggleSubscriptionDialogActivity extends SubscriptionActionDialogAc
|
|||||||
switchDialogMsg.append(
|
switchDialogMsg.append(
|
||||||
getString(R.string.sim_action_switch_sub_dialog_mep_text, displayName));
|
getString(R.string.sim_action_switch_sub_dialog_mep_text, displayName));
|
||||||
if (isRtlMode) {
|
if (isRtlMode) {
|
||||||
/* There are two lines of message in the dialog, and the RTL symbols must be added
|
/* The RTL symbols must be added before and after each sentence.
|
||||||
* before and after each sentence, so use the line break symbol to find the position.
|
|
||||||
* (Each message are all with two line break symbols)
|
* (Each message are all with two line break symbols)
|
||||||
*/
|
*/
|
||||||
switchDialogMsg.insert(0, RTL_MARK)
|
switchDialogMsg.insert(0, RTL_MARK)
|
||||||
.insert(switchDialogMsg.indexOf(LINE_BREAK) - LINE_BREAK_OFFSET_ONE, RTL_MARK)
|
|
||||||
.insert(switchDialogMsg.indexOf(LINE_BREAK) + LINE_BREAK_OFFSET_TWO, RTL_MARK)
|
|
||||||
.insert(switchDialogMsg.length(), RTL_MARK);
|
.insert(switchDialogMsg.length(), RTL_MARK);
|
||||||
}
|
}
|
||||||
ConfirmDialogFragment.show(
|
ConfirmDialogFragment.show(
|
||||||
|
Reference in New Issue
Block a user