Search in sources :

Example 1 with StateAdapter

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);
    }
}
Also used : StateAdapter(com.android.gallery3d.filtershow.state.StateAdapter) HistoryManager(com.android.gallery3d.filtershow.history.HistoryManager)

Aggregations

HistoryManager (com.android.gallery3d.filtershow.history.HistoryManager)1 StateAdapter (com.android.gallery3d.filtershow.state.StateAdapter)1