Merge "Fix a bug where image apps were double-counted." into oc-mr1-dev am: 5d340bce89
am: 942db56283
Change-Id: If093400dfe80cd544df151fb8ee90878a9eecf51
This commit is contained in:
@@ -1665,7 +1665,8 @@ public class ApplicationsState {
|
||||
isCategorized =
|
||||
FILTER_AUDIO.filterApp(entry)
|
||||
|| FILTER_GAMES.filterApp(entry)
|
||||
|| FILTER_MOVIES.filterApp(entry);
|
||||
|| FILTER_MOVIES.filterApp(entry)
|
||||
|| FILTER_PHOTOS.filterApp(entry);
|
||||
}
|
||||
return !isCategorized;
|
||||
}
|
||||
|
||||
@@ -102,6 +102,13 @@ public class ApplicationsStateTest {
|
||||
assertThat(ApplicationsState.FILTER_OTHER_APPS.filterApp(mEntry)).isFalse();
|
||||
}
|
||||
|
||||
@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;
|
||||
|
||||
Reference in New Issue
Block a user