Share via http://fdroid.org/app?id=app.id
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:
parent
d22acac8a5
commit
577a4250b6
@ -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"
|
||||
|
@ -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)));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user