Skip to content

Commit

Permalink
Merge branch 'master' into plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyuanxiao committed May 31, 2018
2 parents 5f98bea + 62534a5 commit 2ba60d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

public class MainActivity extends AbstractWeexActivity {
private FrameLayout layout_container;
private ViewStub vs_tabView;
private ViewStub viewStub_tabView;
private TableView tableView;

@Override
Expand All @@ -39,8 +39,8 @@ private void initView() {
}

private void initTabView() {
vs_tabView = (ViewStub) findViewById(R.id.vs_tabView);
vs_tabView.inflate();
viewStub_tabView = (ViewStub) findViewById(R.id.vs_tabView);
viewStub_tabView.inflate();
tableView = (TableView) findViewById(R.id.tabView);
tableView.setData(BMWXEnvironment.mPlatformConfig.getTabBar());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public class AbstractWeexFragment extends Fragment implements IWXRenderListener

@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
Log.e(TAG, " isVisibleToUser -> onCreate");
super.onCreate(savedInstanceState);
mAct = getActivity();
mRouterType = GlobalEventManager.TYPE_OPEN;
Expand All @@ -60,15 +59,13 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
Log.e(TAG, " isVisibleToUser -> onCreateView");
return super.onCreateView(inflater, container, savedInstanceState);

}

@Override
public void onResume() {
super.onResume();
Log.e(TAG, " isVisibleToUser -> onResume");
if (mWXInstance != null) {
GlobalEventManager.onViewDidAppear(mWXInstance, mRouterType);
}
Expand All @@ -77,7 +74,6 @@ public void onResume() {
@Override
public void onStart() {
super.onStart();
Log.e(TAG, " isVisibleToUser -> onStart");
if (mWXInstance != null) {
GlobalEventManager.onViewWillAppear(mWXInstance, mRouterType);
}
Expand All @@ -86,7 +82,6 @@ public void onStart() {
@Override
public void onPause() {
super.onPause();
Log.e(TAG, " isVisibleToUser -> onPause");
if (mWXInstance != null) {
GlobalEventManager.onViewWillDisappear(mWXInstance, mRouterType);
}
Expand All @@ -95,7 +90,6 @@ public void onPause() {
@Override
public void onStop() {
super.onStop();
Log.e(TAG, " isVisibleToUser -> onStop");
if (mWXInstance != null) {
GlobalEventManager.onViewDidDisappear(mWXInstance, mRouterType);
}
Expand Down

0 comments on commit 2ba60d3

Please sign in to comment.