部分UI调整,选择社区和问题详情脚布局调整
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user