/*
- * Copyright © 2020 Damyan Ivanov.
+ * Copyright © 2021 Damyan Ivanov.
* This file is part of MoLe.
* MoLe is free software: you can distribute it and/or modify it
* under the term of the GNU General Public License as published by
import android.content.Context;
import android.content.res.Resources;
-import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import net.ktnx.mobileledger.ui.MainModel;
import net.ktnx.mobileledger.ui.activity.MainActivity;
import net.ktnx.mobileledger.utils.Locker;
+import net.ktnx.mobileledger.utils.Misc;
import org.jetbrains.annotations.NotNull;
if (oldType != newType)
return false;
- return TextUtils.equals(oldItem.getAccount()
- .getName(), newItem.getAccount()
- .getName());
+ return Misc.equalStrings(oldItem.getAccount()
+ .getName(), newItem.getAccount()
+ .getName());
}
@Override
public boolean areContentsTheSame(@NotNull AccountListItem oldItem,