support market: search links that contain pname: and pub: in the query
* pub: is for searching by "Publisher Name": market://search?q=pub:Guardian%20Project * pname: is an old way to specify "Package Name": market://search?q=pname:org.torproject.android https://developer.android.com/distribute/tools/promote/linking.html
This commit is contained in:
parent
c23d4e1988
commit
281b2ce450
@ -172,6 +172,14 @@ public class FDroid extends ActionBarActivity {
|
|||||||
query = data.getSchemeSpecificPart();
|
query = data.getSchemeSpecificPart();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// an old format for querying via packageName
|
||||||
|
if (query.startsWith("pname:"))
|
||||||
|
appId = query.split(":")[1];
|
||||||
|
|
||||||
|
// sometimes, search URLs include pub: or other things before the query string
|
||||||
|
if (query.contains(":"))
|
||||||
|
query = query.split(":")[1];
|
||||||
|
|
||||||
Intent call = null;
|
Intent call = null;
|
||||||
if (appId != null && appId.length() > 0) {
|
if (appId != null && appId.length() > 0) {
|
||||||
Log.d(TAG, "FDroid launched via app link for '" + appId + "'");
|
Log.d(TAG, "FDroid launched via app link for '" + appId + "'");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user