|
@@ -14,6 +14,7 @@ public abstract class ViewController implements ViewTreeObserver.OnGlobalLayoutL
|
14
|
14
|
private final String id;
|
15
|
15
|
private View view;
|
16
|
16
|
private StackController parentStackController;
|
|
17
|
+ private boolean appeared = false;
|
17
|
18
|
|
18
|
19
|
public ViewController(Activity activity, String id) {
|
19
|
20
|
this.activity = activity;
|
|
@@ -67,7 +68,9 @@ public abstract class ViewController implements ViewTreeObserver.OnGlobalLayoutL
|
67
|
68
|
|
68
|
69
|
@Override
|
69
|
70
|
public void onGlobalLayout() {
|
70
|
|
- if (getView().isShown())
|
|
71
|
+ if (!appeared && getView().isShown()) {
|
|
72
|
+ appeared = true;
|
71
|
73
|
onAppear();
|
|
74
|
+ }
|
72
|
75
|
}
|
73
|
76
|
}
|