FIx crash in substring
This commit is contained in:
parent
351218faf4
commit
3b21c41372
1 changed files with 5 additions and 1 deletions
|
@ -216,7 +216,11 @@ public class SendPoiDialogFragment extends DialogFragment {
|
||||||
modifiedItemsOutOfLimit += quantity;
|
modifiedItemsOutOfLimit += quantity;
|
||||||
if (!stringModifiedIfExceeded) {
|
if (!stringModifiedIfExceeded) {
|
||||||
if (pos == 0) {
|
if (pos == 0) {
|
||||||
|
if (comment.length() - action.length() - 3 >= 0) {
|
||||||
comment = comment.substring(0, comment.length() - action.length() - 3).concat("; ");
|
comment = comment.substring(0, comment.length() - action.length() - 3).concat("; ");
|
||||||
|
} else {
|
||||||
|
comment = comment.substring(0, comment.length() - action.length() - 1).concat("; ");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
comment = comment.substring(0, comment.length() - 2).concat("; ");
|
comment = comment.substring(0, comment.length() - 2).concat("; ");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue