Browse Source

Fix "'handlers.size() == 0' can be replaced with 'handlers.isEmpty()'"

master
Miłosz Sieradzki 11 years ago
parent
commit
a33f3a340a
  1. 2
      src/acr/browser/lightning/IntentUtils.java

2
src/acr/browser/lightning/IntentUtils.java

@ -80,7 +80,7 @@ public class IntentUtils { @@ -80,7 +80,7 @@ public class IntentUtils {
PackageManager pm = mActivity.getPackageManager();
List<ResolveInfo> handlers = pm.queryIntentActivities(intent,
PackageManager.GET_RESOLVED_FILTER);
if (handlers == null || handlers.size() == 0) {
if (handlers == null || handlers.isEmpty()) {
return false;
}
for (ResolveInfo resolveInfo : handlers) {

Loading…
Cancel
Save