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

Commit 48c245f8 authored by mtwebster's avatar mtwebster
Browse files

Really fix issue 2034 - thanks loganj

parent 86441ddb
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -948,15 +948,10 @@ public class ViewContactActivity extends Activity
                        mPhoneEntries.add(entry);
                        
                        //Wysie: Workaround for the entry.type bug, since entry.type always returns -1
                        Integer type;
                        try {
                            type = entryValues.getAsInteger(Phone.TYPE);
                        } catch (NullPointerException e) {
                        	type = CommonDataKinds.Phone.TYPE_HOME;
                        }
                        
                        Integer type = entryValues.getAsInteger(Phone.TYPE);
                        //Wysie: Bug here, entry.type always returns -1.
                        if (/*entry.type*/type == CommonDataKinds.Phone.TYPE_MOBILE || mShowSmsLinksForAllPhones) {
                        if (/*entry.type*/type.intValue() == (CommonDataKinds.Phone.TYPE_MOBILE) || mShowSmsLinksForAllPhones) {
                            // Add an SMS entry
                            if (kind.iconAltRes > 0) {
                                entry.secondaryActionIcon = kind.iconAltRes;