Fix "'handlers.size() == 0' can be replaced with 'handlers.isEmpty()'"
This commit is contained in:
parent
b9320522c7
commit
a33f3a340a
@ -80,7 +80,7 @@ public class IntentUtils {
|
|||||||
PackageManager pm = mActivity.getPackageManager();
|
PackageManager pm = mActivity.getPackageManager();
|
||||||
List<ResolveInfo> handlers = pm.queryIntentActivities(intent,
|
List<ResolveInfo> handlers = pm.queryIntentActivities(intent,
|
||||||
PackageManager.GET_RESOLVED_FILTER);
|
PackageManager.GET_RESOLVED_FILTER);
|
||||||
if (handlers == null || handlers.size() == 0) {
|
if (handlers == null || handlers.isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
for (ResolveInfo resolveInfo : handlers) {
|
for (ResolveInfo resolveInfo : handlers) {
|
||||||
|
Loading…
Reference in New Issue
Block a user