OSDN Git Service

Fix a bug where image apps were double-counted.
[android-x86/frameworks-base.git] / packages / SettingsLib / tests / integ / src / com / android / settingslib / applications / ApplicationsStateTest.java
index 751b4ba..d9ac262 100644 (file)
@@ -103,6 +103,13 @@ public class ApplicationsStateTest {
     }
 
     @Test
+    public void testOtherAppsRejectsImageApp() {
+        mEntry.info.category = ApplicationInfo.CATEGORY_IMAGE;
+
+        assertThat(ApplicationsState.FILTER_OTHER_APPS.filterApp(mEntry)).isFalse();
+    }
+
+    @Test
     public void testOtherAppsAcceptsDefaultCategory() {
         mEntry.info.category = ApplicationInfo.CATEGORY_UNDEFINED;