Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b207437f authored by Wysie's avatar Wysie
Browse files

Release 2.34

Fixed issues with Groups management in general when the group names contain special characters such as single quotes (').
parent a87365c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -839,7 +839,7 @@
    <string name="title_about_name">Mod Name</string>
    <string name="summary_about_name">Wysie Contacts</string>
    <string name="title_about_version">Version</string>
    <string name="summary_about_version">2.33</string>
    <string name="summary_about_version">2.34</string>
    <string name="title_about_credits">Credits</string>
    <string name="summary_about_credits">ChainsDD and the rest of XDA! :)</string>
    
+1 −1
Original line number Diff line number Diff line
@@ -2773,7 +2773,7 @@ public final class EditContactActivity extends Activity implements View.OnClickL
        for (int i = 0; i < selectedGroups.size(); i++) {        
            Cursor cursor = mResolver.query(Groups.CONTENT_URI,
                        GROUPS_PROJECTION, 
                        Contacts.Groups.NAME + "='" + selectedGroups.get(i) + "'", null, null);
                        Contacts.Groups.NAME + "=?", new String[] { selectedGroups.get(i).toString() } , null);
                        
            if (cursor != null) {
                if ((selectedGroups.get(i)).equals(Groups.GROUP_ANDROID_STARRED)) {
+2 −1
Original line number Diff line number Diff line
@@ -298,7 +298,8 @@ public class GroupsListActivity extends ListActivity {
        public boolean checkGroupExists(String groupName) {
            boolean exists = false;
            
            Cursor c = resolver.query(Groups.CONTENT_URI, GROUPS_PROJECTION, "UPPER(" + Groups.NAME + ")=UPPER('" + groupName + "')", null, null);
            Cursor c = resolver.query(Groups.CONTENT_URI, GROUPS_PROJECTION, "UPPER(" + Groups.NAME + ")=?",
                        new String[] { groupName.toUpperCase() }, null);
            
            if (c.getCount() > 0)
                exists = true;