Search in sources :

Example 1 with SceneFragment

use of com.hippo.scene.SceneFragment in project EhViewer by seven332.

the class EhCallback method getScene.

@SuppressWarnings("unchecked")
public E getScene() {
    StageActivity stage = mApplication.findStageActivityById(mStageId);
    if (stage == null) {
        return null;
    }
    SceneFragment scene = stage.findSceneByTag(mSceneTag);
    if (isInstance(scene)) {
        return (E) scene;
    } else {
        return null;
    }
}
Also used : SceneFragment(com.hippo.scene.SceneFragment) StageActivity(com.hippo.scene.StageActivity)

Aggregations

SceneFragment (com.hippo.scene.SceneFragment)1 StageActivity (com.hippo.scene.StageActivity)1