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

Commit 2f57d6a8 authored by ABAAKOUK Mehdi's avatar ABAAKOUK Mehdi
Browse files

Add missing declaration and uninitialized variable

Change-Id: Id910529d19aa1bac919d86ec1e18f3929f6b359e
parent dd6aad72
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -2905,12 +2905,16 @@ public class ContactsListActivity extends ListActivity implements View.OnCreateC
        private boolean mDisplaySectionHeaders = true;
        private Cursor mSuggestionsCursor;
        private int mSuggestionsCursorCount;
        private ImageFetchHandler mHandler;
        private static final int FETCH_IMAGE_MSG = 1;


        public ContactItemListAdapter(Context context) {
            super(context, R.layout.contacts_list_item, null, false);

            mHandler = new ImageFetchHandler();
            mAlphabet = context.getString(com.android.internal.R.string.fast_scroll_alphabet);

            mUnknownNameText = context.getText(android.R.string.unknownName);
            switch (mMode) {
                case MODE_LEGACY_PICK_POSTAL:
@@ -3026,7 +3030,7 @@ public class ContactsListActivity extends ListActivity implements View.OnCreateC
            /* if (Locale.getDefault().getLanguage().equals(Locale.JAPAN.getLanguage())) {
                return new JapaneseContactListIndexer(cursor, SORT_STRING_INDEX);
            } else { */
                return new AlphabetIndexer(cursor, SUMMARY_DISPLAY_NAME_PRIMARY_COLUMN_INDEX, mAlphabet);
                return new AlphabetIndexer(cursor, getSummaryDisplayNameColumnIndex(), mAlphabet);
            /* } */
        }

@@ -3549,7 +3553,7 @@ public class ContactsListActivity extends ListActivity implements View.OnCreateC
                    }
                //}
            }

            /*
            Bundle bundle = cursor.getExtras();
            if (bundle.containsKey(ContactCounts.EXTRA_ADDRESS_BOOK_INDEX_TITLES)) {
                String sections[] =
@@ -3559,6 +3563,7 @@ public class ContactsListActivity extends ListActivity implements View.OnCreateC
            } else {
                mIndexer = null;
            }
            */
        }

        /**