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

Commit 86441ddb authored by mtwebster's avatar mtwebster
Browse files

Fix issue 2034, this should be fixed at the source at some point, to assign a...

Fix issue 2034, this should be fixed at the source at some point, to assign a default type to phone numbers upon import/sync.
parent 35cebec5
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -948,7 +948,12 @@ public class ViewContactActivity extends Activity
                        mPhoneEntries.add(entry);
                        
                        //Wysie: Workaround for the entry.type bug, since entry.type always returns -1
                        final Integer type = entryValues.getAsInteger(Phone.TYPE);                        
                        Integer type;
                        try {
                            type = entryValues.getAsInteger(Phone.TYPE);
                        } catch (NullPointerException e) {
                        	type = CommonDataKinds.Phone.TYPE_HOME;
                        }
                        
                        //Wysie: Bug here, entry.type always returns -1.
                        if (/*entry.type*/type == CommonDataKinds.Phone.TYPE_MOBILE || mShowSmsLinksForAllPhones) {