the database uses case_sensitive_like pragma for other reasons, so
thi lookup query needs to be adapted. this wasn't a problem before
the adoption of Room for database structure migration with all the
connection-level pragmas, used by the account storage part
import androidx.annotation.NonNull;
import net.ktnx.mobileledger.dao.AccountDAO;
import androidx.annotation.NonNull;
import net.ktnx.mobileledger.dao.AccountDAO;
+import net.ktnx.mobileledger.utils.Logger;
import java.util.ArrayList;
import java.util.List;
import java.util.ArrayList;
import java.util.List;
+ Logger.debug("acc", String.format("Looking for account '%s'", constraint));
final List<String> matches = AccountDAO.unbox(
final List<String> matches = AccountDAO.unbox(
- (profileUUID == null) ? dao.lookupByNameSync(String.valueOf(constraint))
+ (profileUUID == null) ? dao.lookupByNameSync(String.valueOf(constraint)
+ .toUpperCase())
: dao.lookupInProfileByNameSync(profileUUID,
: dao.lookupInProfileByNameSync(profileUUID,
- String.valueOf(constraint)));
+ String.valueOf(constraint)
+ .toUpperCase()));
results.values = matches;
results.count = matches.size();
results.values = matches;
results.count = matches.size();