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);
|
||||
String headertext;
|
||||
if (apps.size() == 0) {
|
||||
headertext = String.format(getString(R.string.searchres_noapps),
|
||||
mQuery);
|
||||
headertext = getString(R.string.searchres_noapps, mQuery);
|
||||
} else if (apps.size() == 1) {
|
||||
headertext = String.format(getString(R.string.searchres_oneapp),
|
||||
mQuery);
|
||||
headertext = getString(R.string.searchres_oneapp, mQuery);
|
||||
} else {
|
||||
headertext = String.format(getString(R.string.searchres_napps),
|
||||
apps.size(), mQuery);
|
||||
headertext = getString(R.string.searchres_napps, apps.size(), mQuery);
|
||||
}
|
||||
tv.setText(headertext);
|
||||
Log.d("FDroid", "Search for '" + mQuery + "' returned " + apps.size()
|
||||
|
Loading…
x
Reference in New Issue
Block a user