added str format for resource strings
This commit is contained in:
parent
30d4fbb0b0
commit
1e9783819b
1 changed files with 2 additions and 2 deletions
|
@ -387,7 +387,7 @@ public class BRouterView extends View {
|
|||
if (size < 1)
|
||||
msg = getContext().getString(R.string.msg_no_wpt);
|
||||
if (size > 1000)
|
||||
msg = getContext().getString(R.string.msg_to_much_wpts, size);
|
||||
msg = String.format(getContext().getString(R.string.msg_to_much_wpts), size);
|
||||
}
|
||||
|
||||
if (msg != null) {
|
||||
|
@ -718,7 +718,7 @@ public class BRouterView extends View {
|
|||
((BRouterActivity) getContext()).showErrorMessage(cr.getErrorMessage());
|
||||
} else {
|
||||
String memstat = memoryClass + "mb pathPeak " + ((cr.getPathPeak() + 500) / 1000) + "k";
|
||||
String result = getContext().getString(R.string.msg_status_result,
|
||||
String result = String.format(getContext().getString(R.string.msg_status_result),
|
||||
getContext().getString(R.string.app_version),
|
||||
memstat,
|
||||
Double.toString(cr.getDistance() / 1000.),
|
||||
|
|
Loading…
Reference in a new issue