Commit 22c0e34d authored by MozLando's avatar MozLando
Browse files

Merge #4598 #4687 #4688



4598: For issue #4369 Use MATCH_ALL flag when resolving browsers r=pocmo a=ForceTower



4687:  Docs update (20191008-121003) [ci skip] r=pocmo a=MickeyMoz



4688: Set version to 17.0.0. r=MickeyMoz,MozLando a=pocmo
Co-authored-by: default avatarForceTower <joaopaulo761@gmail.com>
Co-authored-by: default avatarMickeyMoz <sebastian@mozilla.com>
Co-authored-by: default avatarSebastian Kaspari <s.kaspari@gmail.com>
componentsVersion: 16.0.0
componentsVersion: 17.0.0
projects:
concept-awesomebar:
path: components/concept/awesomebar
......
......@@ -9,6 +9,7 @@ import android.content.Intent
import android.content.pm.ActivityInfo
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Build
import java.util.HashMap
/**
......@@ -207,7 +208,13 @@ class Browsers private constructor(
val intent = Intent(Intent.ACTION_VIEW)
intent.data = uri
for (info in packageManager.queryIntentActivities(intent, 0)) {
val flag = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
PackageManager.MATCH_ALL
} else {
PackageManager.MATCH_DEFAULT_ONLY
}
for (info in packageManager.queryIntentActivities(intent, flag)) {
if (context.packageName != info.activityInfo.packageName && info.activityInfo.exported) {
browsers[info.activityInfo.packageName] = info.activityInfo
}
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment