个人中心 增加我的问答

This commit is contained in:
kehaoyuan
2017-12-20 15:39:00 +08:00
parent 4eea5b99d6
commit 0e460b0778
31 changed files with 920 additions and 20 deletions

View File

@ -54,6 +54,13 @@ public class UserManager {
return null;
}
public String getUserId() {
if (mUserInfoEntity != null) {
return mUserInfoEntity.getUserId();
}
return "";
}
public void setCommunityId(Context context, String communityId) {
if (!mCommunityId.equals(communityId)) {
PreferenceManager.getDefaultSharedPreferences(context).edit().putString(COMMUNITY_ID, communityId).apply();