don't operate on null string :( fixes previous commit
This commit is contained in:
parent
281b2ce450
commit
a32154cacb
@ -172,6 +172,7 @@ public class FDroid extends ActionBarActivity {
|
|||||||
query = data.getSchemeSpecificPart();
|
query = data.getSchemeSpecificPart();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!TextUtils.isEmpty(query)) {
|
||||||
// an old format for querying via packageName
|
// an old format for querying via packageName
|
||||||
if (query.startsWith("pname:"))
|
if (query.startsWith("pname:"))
|
||||||
appId = query.split(":")[1];
|
appId = query.split(":")[1];
|
||||||
@ -179,6 +180,7 @@ public class FDroid extends ActionBarActivity {
|
|||||||
// sometimes, search URLs include pub: or other things before the query string
|
// sometimes, search URLs include pub: or other things before the query string
|
||||||
if (query.contains(":"))
|
if (query.contains(":"))
|
||||||
query = query.split(":")[1];
|
query = query.split(":")[1];
|
||||||
|
}
|
||||||
|
|
||||||
Intent call = null;
|
Intent call = null;
|
||||||
if (appId != null && appId.length() > 0) {
|
if (appId != null && appId.length() > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user