mirror of
https://framagit.org/tom79/nitterizeme
synced 2025-02-04 11:17:34 +01:00
Fix issue #40
This commit is contained in:
parent
f57b7ef5a3
commit
ad70d458cb
@ -917,9 +917,6 @@ public class Utils {
|
|||||||
Intent intent = new Intent();
|
Intent intent = new Intent();
|
||||||
intent.setAction(Intent.ACTION_VIEW);
|
intent.setAction(Intent.ACTION_VIEW);
|
||||||
String type = i.getType();
|
String type = i.getType();
|
||||||
if (type == null) {
|
|
||||||
type = "text/html";
|
|
||||||
}
|
|
||||||
intent.setDataAndType(i.getData(), type);
|
intent.setDataAndType(i.getData(), type);
|
||||||
List<ResolveInfo> activities = context.getPackageManager().queryIntentActivities(intent, 0);
|
List<ResolveInfo> activities = context.getPackageManager().queryIntentActivities(intent, 0);
|
||||||
ArrayList<Intent> targetIntents = new ArrayList<>();
|
ArrayList<Intent> targetIntents = new ArrayList<>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user