Contacts: fix missing December in Date Picker

setDisplayedValues resets the min value to 0 and max value to 11 if
out of range, in our case, it resets to 1-11! Setting the min and max
value after setDisplayedValues is a good workaround since we do not
want to modify how the standard widget works

Change-Id: I3624fadcb027dfe1562be528252b2d3010f537e8
Import translations. DO NOT MERGE

Change-Id: I81263913905067ea1356d305f0c550cdfb5bc71d
Auto-generated-cl: translation import
Merge remote-tracking branch 'aosp/kitkat-mr1-release' into HEAD
Import translations. DO NOT MERGE

Change-Id: I65c478bf4e95d65f55f24f813128143603e76594
Auto-generated-cl: translation import
Optimized png for xhdpi & xxhdpi
optipng -nc -nb -o7
contacts: Add support for import contacts to local phone storage

This change allow to select the local storage account to add/import contacts
when others cloud/corporate accounts exists. If one or more account exists just
ask the user to select the destination account

Depends on: http://review.cyanogenmod.org/#/c/59353/

Change-Id: Ic055bdb09d037c2f2cdff06cd9a0159df87e2896
JIRA: CYAN-391
Issue: https://jira.cyanogenmod.org/browse/CYAN-391
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Import translations. DO NOT MERGE

Change-Id: Ic1452398323ca0963820dfc2d4a6b64e776993f7
Auto-generated-cl: translation import
NPE fix on ContactDetailActivity

Remove unnecessary Log.i statement that was causing NPEs

Bug:12489182
Change-Id: Ieed833b1dbb2c854b165871a132aa55003958640
(cherry picked from commit afcdbbde47c94ebcb052f4c11c6d37806c02c162)
Fix IllegalState in ContactSelectionActivity

Handle ContactsRequest.ACTION_DEFAULT as a ContactsRequest.ACTION_PICK_CONTACT
action in ContactSelectionActivity.configureListFragment instead of crashing.

Bug:12489968
Change-Id: I60e2ca8357b211216ff44a7ba297e183c7e9757a
(cherry picked from commit 98609ec4faea054971938f440438bad792596e99)
Handle null returns from insertChild

insertChild() returns null whenever kind is null. Don't crash in these cases.

Bug:12490438
Change-Id: Idf1cd8fa9d6dfe6a2f91f3ff656663f0692f4a3f
(cherry picked from commit f54c9f2c84a88e046e29123fa65b19040e5a457b)
Fix NPE on null cursor close

Only query once for photo dimensions. Don't crash if cursor is null.
Use default of 720 if unable to query provider.

Bug:12552331
Change-Id: I2bd5ad3db86316b3e61d719bc44b524de8758387
(cherry picked from commit 409737c0585f374e2cd0ad1fea9128905a276b85)
Fix NPE in bindEditor

Correctly handle null return values from getMimeEntries()

Bug:12568010
Change-Id: Ic43afb302fa0bdf7852b2247745eaefffa9f7492
(cherry picked from commit ea1b1c62c3232f89d9a56450abf0003af434a962)
Fix crash on missing mimetype

Fix so ContactSaveService shows a toast instead of crashing if called
with malformed intent.

Bug:12622453
Change-Id: I0495649574a90eeb1960de65b22f051a1dc78c78
(cherry picked from commit 57fca1851e5371f259d4dd6bdf322e20c606c975)
Fix NPE when sorting accounts lacking type

Fix NPE when accountType is null in comparator.

Bug:12661115
Change-Id: I37d8b10a48f85f6a23e5761b7bf85a5f612c7379
(cherry picked from commit d97719de77bc3758c34fe11301cf29651578e58d)
Fix potential NPE with null cursor

Detect and handle null cursors returned from CP2 queries.

Bug:12767708
Change-Id: I1571463b80e5b85656fe119c6bc83de36be30c7f
(cherry picked from commit 13c42f4ebb1c7f31750262946ce3b390c93d5320)
Fix NPE on non decodable Bitmap

Fix so don't crash if unable to decode Bitmap that user is attempting to
assign to a contact.

Bug:12819739
Change-Id: I34f31b1e84a76a15d4de92ccd5544ff502743079
(cherry picked from commit 5d170911503c81aca63a9a089aeb0c5664ef0487)
Fix NPE when phone number or email is null

Don't crash if phone number or email address is null; instead, skip the
entry.

Bug:12821628
Change-Id: I3f5de7926278fb54941f9cdb59e9366060d420eb
(cherry picked from commit 89095c7a4bb85a54d7e6c56322a7fcbf0b60f93e)
Catch ActivityNotFoundExceptions

Catch ActivityNotFoundException when attempting to insert or edit a contact.

Bug:12837767
Change-Id: I46688c1f6c59515ff48ddadeaa92e4a74e803eb8
(cherry picked from commit 1d815e67ea1304d693b9e09e7e53e76dc61883e1)
Catch ActivityNotFoundExceptions

Catch ActivityNotFoundExceptions when attempting to view a circle.

Bug:12838969
Change-Id: I4c8a73fd0aeabbe736a0157be0e479ee3f1223a9
(cherry picked from commit 3dd189e5a5fce7772c120d6de2e185398f0275a6)
Don't crash if account label is null

Third party sync adapters may return null when we query for account
type display label. Handle that case.

Bug:13083964
Change-Id: I77fb891a5cdf5a583ea4a8901c857f22683e432f
(cherry picked from commit 97b3461d59292363159f1cda0a6fe7fcaa1686d3)