Move string to its place. Add issue reference.

This commit is contained in:
Daniel Martí 2013-05-05 11:38:19 +02:00
parent 18de950fae
commit 6556745618
2 changed files with 3 additions and 1 deletions

View File

@ -166,5 +166,6 @@
<string name="permissions">Permissions for v%s</string> <string name="permissions">Permissions for v%s</string>
<string name="showPermissions">Show permissions</string> <string name="showPermissions">Show permissions</string>
<string name="showPermissions_long">Display a list of permissions an app needs</string> <string name="showPermissions_long">Display a list of permissions an app needs</string>
<string name="no_handler_app">You don\'t have any app installed that can handle %s</string>
</resources> </resources>

View File

@ -542,7 +542,7 @@ public class AppDetails extends ListActivity {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(s))); startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(s)));
} catch (android.content.ActivityNotFoundException e) { } catch (android.content.ActivityNotFoundException e) {
Toast toast = Toast.makeText(this, Toast toast = Toast.makeText(this,
"You don't have any app installed that can handle " + s, 3); String.format(getString(R.string.no_handler_app), s), 4);
toast.show(); toast.show();
} }
} }
@ -590,6 +590,7 @@ public class AppDetails extends ListActivity {
// TODO: Separate donate links if there are many (e.g. paypal and // TODO: Separate donate links if there are many (e.g. paypal and
// bitcoin) and use their link schemas if possible. // bitcoin) and use their link schemas if possible.
// http://f-droid.org/repository/issues/?do=view_issue&issue=212
case DONATE: case DONATE:
tryOpenUri(app.detail_donateURL); tryOpenUri(app.detail_donateURL);
return true; return true;