deep link bug fix

This commit is contained in:
nuclearfog 2020-06-05 19:35:22 +02:00
parent 92e43f8314
commit fdce91f7b1
No known key found for this signature in database
GPG Key ID: ED35E22099354A64
2 changed files with 6 additions and 2 deletions

View File

@ -27,12 +27,16 @@
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="*twitter.com" />
android:host="twitter.com" />
<data
android:scheme="https"
android:host="mobile.twitter.com" />
</intent-filter>
</activity>

View File

@ -49,7 +49,7 @@ public class LinkContentLoader extends AsyncTask<Uri, Void, LinkContentLoader.Da
String path = link.getPath();
if (path != null && path.length() > 1) {
path = path.substring(1);
if (path.startsWith("search")) {
if (path.startsWith("search") && link.isHierarchical()) {
String search = link.getQueryParameter("q");
if (search != null) {
data.putString(KEY_SEARCH_QUERY, search);