部分UI调整,选择社区和问题详情脚布局调整

This commit is contained in:
kehaoyuan
2018-01-11 18:15:01 +08:00
parent f340a13212
commit 95af9902e7
61 changed files with 385 additions and 233 deletions

View File

@ -65,10 +65,10 @@ public class UserManager {
}
public void setCommunityId(Context context, String communityId, String communityName) {
if (!mCommunityId.equals(communityId)) {
if (TextUtils.isEmpty(mCommunityId) || !mCommunityId.equals(communityId)) {
PreferenceManager.getDefaultSharedPreferences(context).edit().putString(COMMUNITY_ID, communityId).apply();
}
if (!mCommunityName.equals(communityName)) {
if (TextUtils.isEmpty(mCommunityId) || !mCommunityName.equals(communityName)) {
PreferenceManager.getDefaultSharedPreferences(context).edit().putString(COMMUNITY_NAME, communityName).apply();
}
this.mCommunityId = communityId;
@ -80,7 +80,7 @@ public class UserManager {
mCommunityId = PreferenceManager.getDefaultSharedPreferences(context).getString(COMMUNITY_ID, "");
}
if (TextUtils.isEmpty(mCommunityId)) mCommunityId = "5a32405b2397ab000f688de1";
// if (TextUtils.isEmpty(mCommunityId)) mCommunityId = "5a32405b2397ab000f688de1";
return mCommunityId;
}
@ -88,7 +88,7 @@ public class UserManager {
if (TextUtils.isEmpty(mCommunityName)) {
mCommunityName = PreferenceManager.getDefaultSharedPreferences(context).getString(COMMUNITY_NAME, "");
}
if (TextUtils.isEmpty(mCommunityName)) mCommunityName = "少年三国志";
// if (TextUtils.isEmpty(mCommunityName)) mCommunityName = "少年三国志";
return mCommunityName;
}