No need to use String.format explicitly
This commit is contained in:
parent
3d66f7f311
commit
9709b4f51c
@ -119,14 +119,11 @@ public class SearchResults extends ListActivity {
|
|||||||
TextView tv = (TextView) findViewById(R.id.description);
|
TextView tv = (TextView) findViewById(R.id.description);
|
||||||
String headertext;
|
String headertext;
|
||||||
if (apps.size() == 0) {
|
if (apps.size() == 0) {
|
||||||
headertext = String.format(getString(R.string.searchres_noapps),
|
headertext = getString(R.string.searchres_noapps, mQuery);
|
||||||
mQuery);
|
|
||||||
} else if (apps.size() == 1) {
|
} else if (apps.size() == 1) {
|
||||||
headertext = String.format(getString(R.string.searchres_oneapp),
|
headertext = getString(R.string.searchres_oneapp, mQuery);
|
||||||
mQuery);
|
|
||||||
} else {
|
} else {
|
||||||
headertext = String.format(getString(R.string.searchres_napps),
|
headertext = getString(R.string.searchres_napps, apps.size(), mQuery);
|
||||||
apps.size(), mQuery);
|
|
||||||
}
|
}
|
||||||
tv.setText(headertext);
|
tv.setText(headertext);
|
||||||
Log.d("FDroid", "Search for '" + mQuery + "' returned " + apps.size()
|
Log.d("FDroid", "Search for '" + mQuery + "' returned " + apps.size()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user