diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2012-01-31 07:39:04 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2012-01-31 07:39:04 +0100 |
commit | 51401c77601ef356c57772d1fb04cb7663811dbe (patch) | |
tree | 2725ae6e0004edcd5f0f446005271efe9fa86a2d /main/src/cgeo/geocaching/cgeo.java | |
parent | cff161c259ff85c603478a95e7dcd6c01d66e9e5 (diff) | |
download | cgeo-51401c77601ef356c57772d1fb04cb7663811dbe.zip cgeo-51401c77601ef356c57772d1fb04cb7663811dbe.tar.gz cgeo-51401c77601ef356c57772d1fb04cb7663811dbe.tar.bz2 |
refactoring: remove duplicate method
Diffstat (limited to 'main/src/cgeo/geocaching/cgeo.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgeo.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/cgeo.java b/main/src/cgeo/geocaching/cgeo.java index ff47b15..4de8e50 100644 --- a/main/src/cgeo/geocaching/cgeo.java +++ b/main/src/cgeo/geocaching/cgeo.java @@ -262,12 +262,12 @@ public class cgeo extends AbstractActivity { return true; } - private static boolean isIntentAvailable(Context context, String intent) { + public static boolean isIntentAvailable(Context context, String intent) { final PackageManager packageManager = context.getPackageManager(); final List<ResolveInfo> list = packageManager.queryIntentActivities( new Intent(intent), PackageManager.MATCH_DEFAULT_ONLY); - return list.size() > 0; + return CollectionUtils.isNotEmpty(list); } @Override |