Update
This commit is contained in:
1 parent
b9f0a6c70c
commit
69330a2fec
20 files changed
+411
-342
No files matched your search
@@ -18,7 +18,6 @@ package com.hippo.scene;
|
||||
import android.os.Bundle;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.view.View;
|
||||
|
||||
import com.hippo.util.Log;
|
||||
|
||||
@@ -33,6 +32,8 @@ class SceneManager {
|
||||
|
||||
private Scene mLegacyScene;
|
||||
|
||||
private int[] mTemp = new int[2];
|
||||
|
||||
// Should only be called by SceneApplication
|
||||
SceneManager() {
|
||||
}
|
||||
@@ -76,6 +77,12 @@ class SceneManager {
|
||||
scene.setState(Scene.SCENE_STATE_CREATE);
|
||||
scene.create(null);
|
||||
|
||||
// Update fit padding
|
||||
int fitPaddingBottom = getStageActivity().getStageLayout().getFitPaddingBottom();
|
||||
if (fitPaddingBottom != -1) {
|
||||
scene.getFitPaddingBottom(fitPaddingBottom);
|
||||
}
|
||||
|
||||
if (curtain != null && previousState != null) {
|
||||
scene.setState(Scene.SCENE_STATE_OPEN);
|
||||
curtain.open(scene, previousState);
|
||||
@@ -138,9 +145,11 @@ class SceneManager {
|
||||
scene.detachFromeStage();
|
||||
}
|
||||
|
||||
/*
|
||||
// Switch stage bar
|
||||
View stageBarContent = scene.onCreateStageBar();
|
||||
getStageActivity().getStageBar().updateContent(stageBarContent);
|
||||
*/
|
||||
}
|
||||
} else {
|
||||
Log.e(TAG, "The scene is not in stage");
|
||||
@@ -182,6 +191,10 @@ class SceneManager {
|
||||
}
|
||||
}
|
||||
|
||||
Stack<Scene> getSceneStack() {
|
||||
return mSceneStack;
|
||||
}
|
||||
|
||||
protected void onSaveInstanceState(Bundle outState) {
|
||||
for (Scene scene : mSceneStack) {
|
||||
scene.saveInstanceState(outState);
|
||||
|
||||
Reference in new issue
Block a user