修复UserManager equals判断问题

This commit is contained in:
kehaoyuan
2018-04-23 17:27:41 +08:00
parent d305315d7e
commit f7e7819b84
2 changed files with 10 additions and 1 deletions

View File

@ -70,7 +70,7 @@ public class UserManager {
if (TextUtils.isEmpty(mCommunityId) || !mCommunityId.equals(communityId)) {
PreferenceManager.getDefaultSharedPreferences(context).edit().putString(COMMUNITY_ID, communityId).apply();
}
if (TextUtils.isEmpty(mCommunityId) || !mCommunityName.equals(communityName)) {
if (TextUtils.isEmpty(mCommunityName) || !mCommunityName.equals(communityName)) {
PreferenceManager.getDefaultSharedPreferences(context).edit().putString(COMMUNITY_NAME, communityName).apply();
}
this.mCommunityId = communityId;