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

Commit 2149e35e authored by blong's avatar blong Committed by Gerrit - the friendly Code Review server
Browse files

Fix can copy sim contacts with number more than 40

- Remove the auto intercept when number or email exceed the max
  length.

CRs-Fixed: 1076332

Change-Id: Ic8a2e2ea660d17a09ddc124dbfd42083262de041
parent c3708db1
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -3367,20 +3367,12 @@ public class QuickContactActivity extends ContactsActivity
                        StringBuilder strAnrNum = new StringBuilder();
                        for (int j = 1; j < arrayNumber.size(); j++) {
                            String s = arrayNumber.get(j);
                            if (s.length() > MoreContactUtils.MAX_LENGTH_NUMBER_IN_SIM) {
                                s = s.substring(
                                        0, MoreContactUtils.MAX_LENGTH_NUMBER_IN_SIM);
                            }
                            strAnrNum.append(s);
                            strAnrNum.append(SimContactsConstants.ANR_SEP);
                        }
                        StringBuilder strEmail = new StringBuilder();
                        for (int j = 0; j < arrayEmail.size(); j++) {
                            String s = arrayEmail.get(j);
                            if (s.length() > MoreContactUtils.MAX_LENGTH_EMAIL_IN_SIM) {
                                s = s.substring(
                                        0, MoreContactUtils.MAX_LENGTH_EMAIL_IN_SIM);
                            }
                            strEmail.append(s);
                            strEmail.append(SimContactsConstants.EMAIL_SEP);
                        }