From fd31332b20bfb364abf74b1367eb841783f3776c Mon Sep 17 00:00:00 2001 From: panqihua <1029559041@qq.com> Date: Sun, 19 Apr 2020 17:47:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E8=BF=91=E5=8F=91=E5=B8=96=E6=95=B0->?= =?UTF-8?q?=E6=80=BB=E5=8F=91=E5=B8=96=E6=95=B0=20=E6=9C=80=E8=BF=91?= =?UTF-8?q?=E8=AE=BF=E5=AE=A2=E6=95=B0->=E6=80=BB=E8=AE=BF=E5=AE=A2?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../community/pocket/data/model/MyInfo.java | 20 +++++++++---------- .../pocket/ui/main/ui/info/InfoFragment.java | 4 ++-- app/src/main/res/values-zh-rCN/strings.xml | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/src/main/java/com/community/pocket/data/model/MyInfo.java b/app/src/main/java/com/community/pocket/data/model/MyInfo.java index 819e6b3..46bd307 100644 --- a/app/src/main/java/com/community/pocket/data/model/MyInfo.java +++ b/app/src/main/java/com/community/pocket/data/model/MyInfo.java @@ -10,9 +10,9 @@ public class MyInfo { //头像 private String headImg; //最近发帖数 - private Integer recentPosts; + private Integer posts; //最近访客数 - private Integer recentVisitors; + private Integer visitors; //手机号 private String mobie; //邮箱 @@ -45,20 +45,20 @@ public class MyInfo { this.headImg = headImg; } - public Integer getRecentPosts() { - return recentPosts; + public Integer getPosts() { + return posts; } - public void setRecentPosts(Integer recentPosts) { - this.recentPosts = recentPosts; + public void setPosts(Integer posts) { + this.posts = posts; } - public Integer getRecentVisitors() { - return recentVisitors; + public Integer getVisitors() { + return visitors; } - public void setRecentVisitors(Integer recentVisitors) { - this.recentVisitors = recentVisitors; + public void setVisitors(Integer visitors) { + this.visitors = visitors; } public String getMobie() { diff --git a/app/src/main/java/com/community/pocket/ui/main/ui/info/InfoFragment.java b/app/src/main/java/com/community/pocket/ui/main/ui/info/InfoFragment.java index 5f96e45..9c28da1 100644 --- a/app/src/main/java/com/community/pocket/ui/main/ui/info/InfoFragment.java +++ b/app/src/main/java/com/community/pocket/ui/main/ui/info/InfoFragment.java @@ -194,8 +194,8 @@ public class InfoFragment extends BaseFragment { private void loadInfo(MyInfo myInfo) { nickname.setText(getString(R.string.nick_name, myInfo.getUsername())); creditScore.setText(getString(R.string.credit_score, myInfo.getCreditScore())); - recentVisitors.setText(getString(R.string.recent_visitors, myInfo.getRecentVisitors())); - recentPosts.setText(getString(R.string.recent_posts, myInfo.getRecentPosts())); + recentVisitors.setText(getString(R.string.recent_visitors, myInfo.getVisitors())); + recentPosts.setText(getString(R.string.recent_posts, myInfo.getPosts())); mobie.setText(myInfo.getMobie()); email.setText(myInfo.getEmail()); diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 7db449c..b38ed3e 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -41,8 +41,8 @@ 修改密码 手机号绑定 邮箱绑定 - 最近发帖数 :%1$d - 最近访客数:%1$d + 总发帖数 :%1$d + 总访客数:%1$d 信用分活动记录 公告管理员:%1s 加载公告内容中。。。。