use of com.android.gallery3d.filtershow.state.StateAdapter in project android_packages_apps_Gallery2 by LineageOS.
the class FilterShowActivity method setupMasterImage.
public void setupMasterImage() {
HistoryManager historyManager = new HistoryManager();
StateAdapter imageStateAdapter = new StateAdapter(this, 0);
MasterImage.setMaster(null);
mMasterImage = MasterImage.getImage();
mMasterImage.setHistoryManager(historyManager);
mMasterImage.setStateAdapter(imageStateAdapter);
mMasterImage.setActivity(this);
if (Runtime.getRuntime().maxMemory() > LIMIT_SUPPORTS_HIGHRES) {
mMasterImage.setSupportsHighRes(true);
} else {
mMasterImage.setSupportsHighRes(false);
}
}
Aggregations