summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Contacts : Add ability to customize Contact Editor ViewsRohit Yengisetty2015-10-3014-36/+112
| | | | | | [CYNGNOS-1237] Change-Id: I3661d9911f9b7524edcf3c1adf8ec96359d961ba
* Fix empty field creation for data kinds without type.Danny Baumann2015-10-271-10/+8
| | | | | | | | When checking for exhaustion of available kind types (introduced by commit 6c3c58900bccea7a96b1435e0e0466a6b99dab36), make sure to do that check only for data kinds that actually have a type attached. Change-Id: I7fb69faaf46802faae8ac4e90633627e04d5ee22
* Contacts: Use common contacts uri extracretin452015-10-011-4/+1
| | | | | | Part of fix for MMS-127 and MMS-118 Change-Id: I3b3d8ca7316a92b204bcb0a624e86d05dbdeed28
* Contacts: Save contact image from lookupcretin452015-09-251-6/+22
| | | | | | | | Requires: http://review.cyanogenmod.org/#/c/110252/ Addresses MMS-149 Change-Id: Iaf0f3a2e87b19391869eb812a3bb3945d63b8621
* Contacts: Remove contact shortcut for lookup contactcretin452015-09-231-1/+2
| | | | | | | | | If a contact comes from an enhanced lookup, don't show the menu option to add shortcut to homescreen. Addresses MMS-145 Change-Id: If354fdb65e4e1f2f27e71dbe1b41f145c46cb20c
* Contacts: Add contact lookup with attribution to quick contactsMatt Garnes2015-09-212-23/+115
| | | | | | MMS-86 Change-Id: Ib85ebfd3da14da6f6e04e9a4ec751460a85eeeec
* Stop contact editor from adding empty field if no more types.Martin Brabham2015-09-141-0/+13
| | | | | | | | | | If there was a field with 1 type and you entered in a value it popped up a new field for the same kind. i.e. Add a birth date for new exchange contact Change-Id: I3a0567d8f4c031ad6bfb0772dac5d116547f6041 Ticket-Id: HAM-291
* Contacts : Ensure query excludes LOCAL_CONTACTSDanesh M2015-09-101-1/+2
| | | | | | | | | Since we add local accounts ourselves, ensure account manager does not return it in the list to avoid duplicates. issue-id: CYNGNOS-949 Change-Id: Icee16303ba8bf2a62317a3b51f0b83f9357d6f52
* Contacts: Fixed "%s" appearing in contact options in some languagesElike242015-07-011-16/+16
| | | | | | | | | | In the contacts-app, when looking at a contact, there is a entry in the options called "Copy to SIM" (or similar) in most cases. The text in the translation file for this is "Copy to <xliff:g id="destination">%s</xliff:g>" (%s at the end), while the text is "Nach <xliff:g id="destination">%s</xliff:g> kopieren" (%s in the middle) in the German translation for example. The problem is that the destination (e.g. "SIM") is added using the plus operator instead of replacing the %s. This does not cause any trouble if the %s stands at the end, such as in English, but in German it causes "Nach %s kopierenSIM" instead of "Nach SIM kopieren". Adding "SIM" as second parameter in getString() instead of using "+" should replace %s by "SIM" and fix the problem. Change-Id: I81d3d1b366e7bbff3e331af67295c53100f5840a
* Fix local account name display for groups.Matt Garnes2015-06-181-0/+2
| | | | | | | | | When the group browse list adapter displays the local phone account, it explicitly does not display the account name. However, when the views are recycled, the previous account name is displayed. Instead, set this to the empty string for the local account. Change-Id: Ibfbb2f4e9edc09ef47e21652743f1572ee2f3495
* Remove arbitrary set visibility callMartin Brabham2015-06-171-1/+0
| | | | Change-Id: I0bb4b9f3fdba5f00d567d48478305678a2b1164c
* Keep a local instance of mContactData when copying to SIM card.Matt Garnes2015-06-101-2/+3
| | | | | | | | | | | | Copying to SIM card can take a long time while it reads data about available space on the SIM. If the user leaves the activity, mContactData will be set to null and copyToCard will throw an NPE trying to call methods on it. Keep a local instance of this variable that the thread can reference later. Change-Id: Ie5187372b6fb2b23b00e266a175c91b8051e651e
* Contacts:remove memory status from overflow in search modenaman142015-06-041-0/+1
| | | | | | The memory status menu item persists even in search mode and it looks ugly Change-Id: I3b7120440f820786d28ca77f82dac30579f55dad
* fix crash in QuickContact on sending contact via smsnaman142015-05-201-2/+7
| | | | | | | | Open QuickContact for any contact->Send Contact via sms- ActivityNotFound Exception This is still using the previous vnd.android-dir/mms-sms which wouldn't work on kitkat above Change-Id: I63dcf38c20f11d0ce023cf29138d49036500fcde
* Contacts : Remove silent option from ringtoneDanesh M2015-05-181-1/+1
| | | | | | | | | | Silent is fundamentally broken across the platform, its currently the same as default anyway. A lot of assumptions are based on this "bug" such as default multi-sim ringtones...etc Remove the option for now as it doesn't work anyway. Change-Id: I3ce669c8c5f078349054faa0eb29486a3755ce43
* Summarize local phone storage in MemoryStatusActivity.Matt Garnes2015-05-121-0/+6
| | | | | | | | | | As the first item in the list, find the number of Contacts stored on the device with PhoneAccountType.ACCOUNT_TYPE. Depends on http://review.cyanogenmod.org/#/c/91855/ to display correctly. Change-Id: Ib421a1e9e2fa99310f5591c8db75c9a48b93b3ee
* QuickContacts: Fix null pointer exception when clicking a contactstaging/cm-12.1Patrick Lower2015-03-281-1/+1
| | | | Change-Id: I046a10802fa381bc368b48cdfbda79cc75fc7d63
* Don't show default and favorites groups in group overview.Danny Baumann2015-03-261-2/+9
| | | | Change-Id: I37a0c7101f6bb24706e88b0128e466101bf89cc1
* Display group memberships in a meaningful way.staging/cm-12.1-testDanny Baumann2015-03-251-0/+40
| | | | Change-Id: I60d789b3cf533173a46417bf6876e7098cde2335
* Fix merge relicts.Danny Baumann2015-03-251-4/+0
| | | | Change-Id: I932ac76cd3e15d34f73d16e015252c3e51d5084b
* Merge branch 'lollipop-mr1-release' of ↵Steve Kondik2015-03-2540-1135/+1443
|\ | | | | | | | | | | https://android.googlesource.com/platform/packages/apps/Contacts into cm-12.1 Change-Id: Id9100da19bf1c3b66f441289b7ae4eea76ce0b16
| * Don't access mRecentLoaderResults in backgroundBrian Attwell2015-02-111-5/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lists inside mRecentLoaderResults are cleared inside Loader#onReset. Therefore, Retreiving items inside mRecentLoaderResults's lists on a background thread can result in retreiving nulled out ArrayList entries. Fix: * Only access mRecentLoaderResults on the main thread * Don't crash when encountering null entries inside mRecentLoaderResults, in case I'm wrong about the reason these entries are null (although I can't see any other causes) * make bindRecentData() sorting stable, since I'm already editing this code anyway Bug: 19320314 Change-Id: Id871a8c0de3685baf07a6c4d65a4835380b1b99a
| * Scroll to top of raw_contact on expansionBrian Attwell2014-12-172-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | User feedback: when expanding a raw_contact section in the editor, if it doesn't scroll onto screen, then the expanded section looks like it is empty. Therefore, we adjust the ScrollView's scrollY upon expanding raw_contact editors. We also do some work to make sure that focus makes sense after expanding/collapsing. Bug: 18004959 Change-Id: Ib20c4d971d655650eea9e378e2ffde8876e5875c
| * Merge "Support editable 3p accounts without nicknames" into lmp-mr1-devBrian Attwell2014-12-131-5/+11
| |\
| | * Support editable 3p accounts without nicknamesBrian Attwell2014-12-121-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a theoretical crash case. We shouldn't assume the nickname field always exists. All standard writable accounts have nickname fields. But, it is possible to create an 3p account type with an xml edit specification that omits the nickname (I don't know if anyone does this). Bug: 18004959 Change-Id: I9770e88891e5800ef56d2df8a0ddb8463e3e8815
| * | Fix ContactLoader IllegalArgumentException crashJay Shrauner2014-12-122-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | Display toast instead of crashing when unable to load contact due to acore crash or invalid URI. Bug: 18689131 Change-Id: I0e393e833bbb839af08ba6f4c10203a7d9abd3d7
| * | Merge "bugfix: don't show name in nickname field" into lmp-mr1-devBrian Attwell2014-12-121-3/+9
| |\|
| | * bugfix: don't show name in nickname fieldBrian Attwell2014-12-101-3/+9
| | | | | | | | | | | | | | | Bug: 18004959 Change-Id: Ic0ba640cf83bd614c77d30bed3b02f08347b237d
| * | Merge "Catch ActivityNotFoundExceptions in onClick" into lmp-mr1-devJay Shrauner2014-12-101-1/+8
| |\ \
| | * | Catch ActivityNotFoundExceptions in onClickJay Shrauner2014-11-261-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Display a toast when activity isn't found. Bug:18537920 Change-Id: I84bf07e64fffa92b6fe6de8d3de0259d339d35f3
| * | | Fix ConcurrentModificationExceptionJay Shrauner2014-12-091-1/+8
| | |/ | |/| | | | | | | | | | | | | | | | | | | Switch from using a HashMap to a ConcurrentHashMap for the loader results map. Bug:18688436 Change-Id: Ib90f794b673d88f54fc841c0fa001866139f47c6
| * | Merge "Don't accidentally scroll QC off screen." into lmp-mr1-devBrian Attwell2014-12-051-55/+110
| |\ \
| | * | Don't accidentally scroll QC off screen.Brian Attwell2014-12-051-55/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Behavior changes 1) Halt fling once it hits the top of the window 2) Add top EdgeEffect 3) Add springyness These changes result in much simpler nested-scrolling calculations. UX may want to change some of the constants after playing with this for a day. However, the logic changes should remain unchanged. Bug: 18571742 Change-Id: Icbc063beb2061bf7cd1e4401b16e604415140242
| * | | Merge "Change text colors to reflect their state" into lmp-mr1-devBrian Attwell2014-12-057-21/+112
| |\ \ \ | | |/ / | |/| |
| | * | Change text colors to reflect their stateBrian Attwell2014-12-047-21/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The editor's text color suffered from two conflicting problems 1) It didn't all pass GAR 2) The difference between hint text and regular text is too subtle to differentiate at a glance Changes 1) Once a LabeledEditorView is non-empty, the text color of the spinner should no longer be the hint text color 2) Once an editor field is focused, all fields in the same EditKindSection get a slightly darker color. Since the various name editors, don't actually belong to a EditKindSection extra work needed to be done for them. 3) Drop down lists use non hint colors Read only editor continues to use the darker hint color. There is no need to strongly distinquish hint colors from non hint colors in the read only editor. Bug: 18004959 Change-Id: Ia6b16ab882b2fcb9113c2ac880e741f62115a1f9
| * | | Merge "Don't save contact after deleting it" into lmp-mr1-devBrian Attwell2014-12-031-3/+4
| |\ \ \
| | * | | Don't save contact after deleting itBrian Attwell2014-11-251-3/+4
| | | | | | | | | | | | | | | | | | | | Bug: 18514447 Change-Id: I695aa41eb6870b7c256efb9f5eccf9e0eadefe4f
| * | | | Merge "Fix NPE in onHandleIntent" into lmp-mr1-devJay Shrauner2014-12-031-0/+4
| |\ \ \ \
| | * | | | Fix NPE in onHandleIntentJay Shrauner2014-12-011-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Catch null intents. Bug:18579403 Change-Id: I4ee3baf97c8767f0b166f122c13f8abab3a75a4f
| * | | | | Merge "Hide keyboard when exiting search view" into lmp-mr1-devBrian Attwell2014-12-031-13/+4
| |\ \ \ \ \ | | |_|_|/ / | |/| | | |
| | * | | | Hide keyboard when exiting search viewBrian Attwell2014-12-021-13/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18548146 Change-Id: Ia37dedca43352d609e8eef54761d1ed67ec6c133
| * | | | | Don't show shortcut menu item for homescreenBrian Attwell2014-12-021-0/+3
| |/ / / / | | | | | | | | | | | | | | | | | | | | Bug: 18581314 Change-Id: I169ca8e554d3fb288526eee7fc1532d7de2220da
| * | | | Merge "In editor, use Up button instead of Save button" into lmp-mr1-devBrian Attwell2014-12-022-20/+5
| |\ \ \ \ | | |/ / / | |/| | |
| | * | | In editor, use Up button instead of Save buttonBrian Attwell2014-11-252-20/+5
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can't yet delete the assets from editor_custom_action_bar since they are used inside the group editor. And we aren't 100% certain we want to delete all the groups. Bug: 18004959 Change-Id: Id60515d2e5bbaab98498162707581730baca2d8b
| * | | Merge "Collapse extra raw contact editors" into lmp-mr1-devBrian Attwell2014-12-016-99/+194
| |\ \ \
| | * | | Collapse extra raw contact editorsBrian Attwell2014-11-266-99/+194
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are now two different header styles 1) When creating a new raw contact: if there are multiple accounts to create the raw contact under, then show a header with an acconut selector 2) Otherwise, show a visually distinct account header without a drop down account selector. If there are multiple raw contacts, this header also lets you collapse raw contacts Typical users, who only have a single writeable account, will never see header (1). This is fortunate, since switching between the two header styles is a bit visually inconsistent. Bug: 18004959 Change-Id: I133a7355a220f20b55657a6c1a51ff44665ea3b9
| * | | Merge "Use delete icon from go/icons" into lmp-mr1-devBrian Attwell2014-12-011-1/+1
| |\ \ \
| | * | | Use delete icon from go/iconsBrian Attwell2014-11-261-1/+1
| | |/ / | | | | | | | | | | | | | | | | Bug: 18004959 Change-Id: Ia8a5fe6006f6caf313a0f2eb044a94535c43878c
| * | | Merge "Fix NPE in shareContact" into lmp-mr1-devJay Shrauner2014-12-011-1/+3
| |\ \ \
| | * | | Fix NPE in shareContactJay Shrauner2014-11-261-1/+3
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | Check whether we have a shareable contact before trying to share it. Bug:18535080 Change-Id: Id49d40227f58c592ff83c0d848ac690b85dde8d5