Advantages:
- http links are linkified everywhere
- web browser request will fall back to our web repo
- we don't have to use our own scheme
This commit is contained in:
Daniel Martí 2013-07-18 11:56:52 +02:00
parent d22acac8a5
commit 577a4250b6
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="fdroid" android:host="details" />
<data android:scheme="http" android:host="fdroid.org" android:path="/app" />
</intent-filter>
<meta-data
android:name="android.support.PARENT_ACTIVITY"

View File

@ -760,7 +760,7 @@ public class AppDetails extends ListActivity {
shareIntent.setType("text/plain");
shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, app.name);
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, "fdroid://details?id="+app.id);
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, "http://fdroid.org/app?id="+app.id);
startActivity(Intent.createChooser(shareIntent, getString(R.string.menu_share)));
}