Don't use hard-coded "NONE". Long/Short title.

This commit is contained in:
Daniel Martí 2013-05-03 21:36:16 +02:00
parent 0efdc9df00
commit 5cf8cc1d55
2 changed files with 5 additions and 3 deletions

View File

@ -163,7 +163,9 @@
<string name="status_processing_xml">Processing application\n%2$d of %3$d from\n%1$s</string>
<string name="status_connecting_to_repo">Connecting to\n%1$s</string>
<string name="status_checking_compatibility">Checking apps compatibility with your device…</string>
<string name="permissions">Permissions for v%s</string>
<string name="no_permissions">No permissions are used.</string>
<string name="permissions">Permissions for %s</string>
<string name="permissions_long">Permissions for version %s</string>
<string name="showPermissions">Show permissions</string>
<string name="showPermissions_long">Display a list of permissions an app needs</string>

View File

@ -443,7 +443,7 @@ public class AppDetails extends ListActivity {
tv = (TextView) infoView.findViewById(R.id.permissions_list);
if (pref_permissions) {
CommaSeparatedList permsList = app.apks.get(0).detail_permissions;
if (permsList == null) tv.setText("NONE");
if (permsList == null) tv.setText(R.string.no_permissions);
else {
Iterator<String> permissions = permsList.iterator();
StringBuilder sb = new StringBuilder();
@ -464,7 +464,7 @@ public class AppDetails extends ListActivity {
}
tv = (TextView) infoView.findViewById(R.id.permissions);
tv.setText(getResources().getString(
R.string.permissions, app.apks.get(0).version));
R.string.permissions_long, app.apks.get(0).version));
} else {
tv.setVisibility(View.GONE);
tv = (TextView) infoView.findViewById(R.id.permissions);