use of com.android.gallery3d.filtershow.category.CategoryAdapter in project android_packages_apps_Gallery2 by LineageOS.
the class FilterShowActivity method fillDualCamera.
private void fillDualCamera() {
FiltersManager filtersManager = FiltersManager.getManager();
ArrayList<FilterRepresentation> filtersRepresentations = filtersManager.getDualCamera();
if (mCategoryDualCamAdapter != null) {
mCategoryDualCamAdapter.clear();
}
mCategoryDualCamAdapter = new CategoryAdapter(this);
for (FilterRepresentation representation : filtersRepresentations) {
if (representation.getTextId() != 0) {
representation.setName(getString(representation.getTextId()));
}
mCategoryDualCamAdapter.add(new Action(this, representation));
}
}
use of com.android.gallery3d.filtershow.category.CategoryAdapter in project android_packages_apps_Gallery2 by LineageOS.
the class FilterShowActivity method fillMakeup.
private void fillMakeup() {
if (!SimpleMakeupImageFilter.HAS_TS_MAKEUP) {
return;
}
FiltersManager filtersManager = FiltersManager.getManager();
ArrayList<FilterRepresentation> makeups = filtersManager.getMakeup();
if (mCategoryMakeupAdapter != null) {
mCategoryMakeupAdapter.clear();
}
mCategoryMakeupAdapter = new CategoryAdapter(this);
for (FilterRepresentation makeup : makeups) {
if (makeup.getTextId() != 0) {
makeup.setName(getString(makeup.getTextId()));
}
mCategoryMakeupAdapter.add(new Action(this, makeup));
}
}
Aggregations