aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgeo.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2012-01-31 07:39:04 +0100
committerBananeweizen <bananeweizen@gmx.de>2012-01-31 07:39:04 +0100
commit51401c77601ef356c57772d1fb04cb7663811dbe (patch)
tree2725ae6e0004edcd5f0f446005271efe9fa86a2d /main/src/cgeo/geocaching/cgeo.java
parentcff161c259ff85c603478a95e7dcd6c01d66e9e5 (diff)
downloadcgeo-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.java4
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