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

This commit is contained in:
Miłosz Sieradzki 2014-07-25 19:35:41 +02:00
parent b9320522c7
commit a33f3a340a

View File

@ -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) {