Commit 1650d09f by 严久程

年龄显示问题

parent 7940dd18
...@@ -400,7 +400,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy { ...@@ -400,7 +400,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
if (TextUtils.equals(bean.getUserInfoType(), "age")) { if (TextUtils.equals(bean.getUserInfoType(), "age")) {
try { try {
String year = bean.getContent(); String year = bean.getContent();
if ((Calendar.getInstance().get(Calendar.YEAR) - Integer.valueOf(year)) < 16) { if ((Calendar.getInstance().get(Calendar.YEAR) - Integer.valueOf(year)) <= 16) {
if (!getActivity().isFinishing()) { if (!getActivity().isFinishing()) {
showCheckAgeDialog(); showCheckAgeDialog();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment