aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2013-06-27 13:03:42 +0200
committerrsudev <rasch@munin-soft.de>2013-06-27 13:03:42 +0200
commitcb90fff0100a40bdefae6b57a6b12e9c113b641f (patch)
tree6f225a634e1f831cddc87df5d884e96607b96c44 /tests
parentb01b3c3514f1249b393907926784cd078f200d84 (diff)
downloadcgeo-cb90fff0100a40bdefae6b57a6b12e9c113b641f.zip
cgeo-cb90fff0100a40bdefae6b57a6b12e9c113b641f.tar.gz
cgeo-cb90fff0100a40bdefae6b57a6b12e9c113b641f.tar.bz2
Fixes #2923, Menu slow to open in cache details
Removed costly scan of installed packages for launchable apps
Diffstat (limited to 'tests')
-rw-r--r--tests/src/cgeo/geocaching/utils/ProcessUtilsTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/utils/ProcessUtilsTest.java b/tests/src/cgeo/geocaching/utils/ProcessUtilsTest.java
index d2d282b..f34faa6 100644
--- a/tests/src/cgeo/geocaching/utils/ProcessUtilsTest.java
+++ b/tests/src/cgeo/geocaching/utils/ProcessUtilsTest.java
@@ -8,4 +8,14 @@ public class ProcessUtilsTest extends TestCase {
assertTrue(ProcessUtils.isInstalled("com.android.launcher"));
}
+ public static void testIsInstalledNotLaunchable() {
+ final String packageName = "com.android.systemui";
+ assertTrue(ProcessUtils.isInstalled(packageName));
+ assertFalse(ProcessUtils.isLaunchable(packageName));
+ }
+
+ public static void testIsLaunchable() {
+ assertTrue(ProcessUtils.isInstalled("com.android.settings"));
+ }
+
}