Using context.getString for getting formatted strings, as it works better with different locales

Change-Id: I9639bb11197e656c5cdd3a4d63f913edcc0987cb
This commit is contained in:
Sunny Goyal
2015-09-02 15:06:12 -07:00
parent 9e0702f4af
commit f4f89ef608
6 changed files with 8 additions and 12 deletions
+1 -1
View File
@@ -4382,7 +4382,7 @@ public class Workspace extends PagedView
private String getPageDescription(int page) {
int delta = numCustomPages();
return String.format(getContext().getString(R.string.workspace_scroll_format),
return getContext().getString(R.string.workspace_scroll_format,
page + 1 - delta, getChildCount() - delta);
}