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

Change-Id: I9639bb11197e656c5cdd3a4d63f913edcc0987cb
This commit is contained in:
Sunny Goyal committed 2015-09-02 22:15:29 +00:00
1 parent 9e0702f4af
commit f4f89ef608
6 files changed
+8 -12

No files matched your search

+2 -4
View File
@@ -173,8 +173,7 @@ public class FolderIcon extends FrameLayout implements FolderListener {
icon.setOnClickListener(launcher);
icon.mInfo = folderInfo;
icon.mLauncher = launcher;
icon.setContentDescription(String.format(launcher.getString(R.string.folder_name_format),
folderInfo.title));
icon.setContentDescription(launcher.getString(R.string.folder_name_format, folderInfo.title));
Folder folder = Folder.fromXml(launcher);
folder.setDragController(launcher.getDragController());
folder.setFolderIcon(icon);
@@ -714,8 +713,7 @@ public class FolderIcon extends FrameLayout implements FolderListener {
public void onTitleChanged(CharSequence title) {
mFolderName.setText(title);
setContentDescription(String.format(getContext().getString(R.string.folder_name_format),
title));
setContentDescription(getContext().getString(R.string.folder_name_format, title));
}
@Override