From 5b38a1fae7aeed08d4091838f79fc61438a31222 Mon Sep 17 00:00:00 2001 From: kohoh qxw Date: Tue, 22 Oct 2013 21:08:04 +0800 Subject: [PATCH] fix the issue #40 --- source/src/cn/eoe/app/view/UserCollectFragment.java | 5 +++++ source/src/cn/eoe/app/view/UserCollectListFragment.java | 4 ++++ source/src/cn/eoe/app/view/UserIntroFragment.java | 4 ++++ source/src/cn/eoe/app/view/UserLogOutFragment.java | 4 ++++ source/src/cn/eoe/app/view/WikiFragment.java | 4 ++++ 5 files changed, 21 insertions(+) diff --git a/source/src/cn/eoe/app/view/UserCollectFragment.java b/source/src/cn/eoe/app/view/UserCollectFragment.java index f4b8152..b3691f8 100644 --- a/source/src/cn/eoe/app/view/UserCollectFragment.java +++ b/source/src/cn/eoe/app/view/UserCollectFragment.java @@ -28,6 +28,11 @@ public class UserCollectFragment extends Fragment { private WindowManager wm; private UserCollectListFragment mUserFragment; + + //All subclasses of Fragment must include a public empty constructor. + public UserCollectFragment() + {} + public UserCollectFragment(UserResponse userResponse, FragmentActivity activity) { mActivity = activity; diff --git a/source/src/cn/eoe/app/view/UserCollectListFragment.java b/source/src/cn/eoe/app/view/UserCollectListFragment.java index 63ecd88..f9991f1 100644 --- a/source/src/cn/eoe/app/view/UserCollectListFragment.java +++ b/source/src/cn/eoe/app/view/UserCollectListFragment.java @@ -33,6 +33,10 @@ public class UserCollectListFragment extends Fragment implements private UserFavoriteList mUserFavoriteList; + //All subclasses of Fragment must include a public empty constructor. + public UserCollectListFragment() + {} + public UserCollectListFragment(Activity activity, UserFavoriteList userFavoriteList) { mUserFavoriteList = userFavoriteList; diff --git a/source/src/cn/eoe/app/view/UserIntroFragment.java b/source/src/cn/eoe/app/view/UserIntroFragment.java index 20ab231..a0c7f28 100644 --- a/source/src/cn/eoe/app/view/UserIntroFragment.java +++ b/source/src/cn/eoe/app/view/UserIntroFragment.java @@ -34,6 +34,10 @@ public class UserIntroFragment extends Fragment { private List> mList; private Context mContext; + //All subclasses of Fragment must include a public empty constructor. + public UserIntroFragment() + {} + public UserIntroFragment(UserResponse result) { mUserResponse = result; } diff --git a/source/src/cn/eoe/app/view/UserLogOutFragment.java b/source/src/cn/eoe/app/view/UserLogOutFragment.java index 65be3f1..98f3062 100644 --- a/source/src/cn/eoe/app/view/UserLogOutFragment.java +++ b/source/src/cn/eoe/app/view/UserLogOutFragment.java @@ -23,6 +23,10 @@ public class UserLogOutFragment extends Fragment implements OnClickListener { private Activity mActivity; private boolean isShowtxt; + //All subclasses of Fragment must include a public empty constructor. + public UserLogOutFragment() + {} + public UserLogOutFragment(Activity activity,boolean isshow) { mActivity = activity; isShowtxt=isshow; diff --git a/source/src/cn/eoe/app/view/WikiFragment.java b/source/src/cn/eoe/app/view/WikiFragment.java index 538d1cc..a3f7aee 100644 --- a/source/src/cn/eoe/app/view/WikiFragment.java +++ b/source/src/cn/eoe/app/view/WikiFragment.java @@ -40,6 +40,10 @@ public void handleMessage(android.os.Message msg) { }; + //All subclasses of Fragment must include a public empty constructor. + public WikiFragment() + {} + public WikiFragment(Activity c, WikiCategoryListEntity categorys) { this.mActivity = c; if (categorys != null) {