deep link bug fix
This commit is contained in:
parent
92e43f8314
commit
fdce91f7b1
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue