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