Fix exception print due to wrong database operation.

The Account table is not in EmailProviderBody database.
The onOpen() in BodyDatabaseHelper always cause exception error message print.

Change-Id: I94cc39655b74dce5d7dc48c8661b18076b1a5075
Signed-off-by: esther <esther530@gmail.com>
Fix dangling comma in 'to view' when filled from intent.

When using the ACTION_SENDTO intent with a scheme of mailto: a dangling comma was inserted into the 'to view' causing
an invalid email address error when attempting to send. This fix simply checks if the string is empty before splitting
on a comma and adding the addresses. The use case here is if the intent only includes bcc or cc fields and not the to field.

Change-Id: Iefc6a8fc1070da00a23f46a97a4b3229243cd0cc
Signed-off-by: Michael Novak <michael.novakjr@gmail.com>
Use DatabaseUtils method instead of query()

Use DatabaseUtils.longForQuery() method instead of SQLiteDatabase.query().
This reduces processing cost of database cursor.

Change-Id: Ibe53645b32a4de1ab6518f879e564ddf8f75d822
Use deleteDatabase method to improve safety of DB file handling

Deleting .db files can make malformed database issues
when WAL(write ahead logging) mode is enabled.
EmailProvider doesn't use WAL mode currently,
But it has to be fixed because it might cause the problem in the
future.

Change-Id: Ie0313c5d253f3080401b00b197e7cbf97f25423c
Use recycled views in the cursor adapter

The AccountSelectorAdapter now uses recycled views as requested by the TODO tags in the code.
newView() and bindView() are now implemented and getView() is left to the ancestor class.

Change-Id: Id062ed508b2890300ab03f7321aec046ef12ff16
Updated account access settings for Wirtualna Polska

See:

http://poczta.wp.pl/info-pomoc-konfig.html?action=more&id=161

SSL encryption on by default, IMAP access.

Change-Id: I60d4f264a50e8f2c501493c64ef5e631a690073b
Signed-off-by: Tomasz Potega <tomasz.potega@gmail.com>
Email: SV translations

Change-Id: I16deba6e91b7e62ba8cf9f376c19a394d045cc02
Email: CA translations

Change-Id: Ib7d32c4a6032f8443070bf60320ca16d0b666fe0
Email: Japanese translation

Change-Id: Ie57d321915be91d0522a5d5a83b64b5b4144fc9d
Email: SK translations

Change-Id: I945523c58aa26cf94d85fd500b50f0a503933c52
Remove Old PIB

Change-Id: Ib10864e660114a5715b0aa8c481298c716b8919d
Email: Fix PIB

cheers

Change-Id: Ic8ff0862b15bd627999861899fe993a66093cf8d
Add action buttons to new email notifications

Another new feature from Slim!

Works similar to Gmail in that single messages have action buttons.
Each action can be toggled on/off, allowing you to revert back to stock functionality.

Buttons: Mark read, Reply, Delete

Screenshot: https://dl.dropboxusercontent.com/u/2094658/d2att/email_notification_buttons.png

ps4: Fixed intents

Change-Id: Ifa23298d859dc045d943b386b106a8aee76ec2c6

Conflicts:
	res/drawable-inverted-hdpi/ic_reply_all_holo_dark.png
	res/drawable-inverted-hdpi/ic_reply_holo_dark.png
	res/drawable-inverted-xhdpi/ic_reply_all_holo_dark.png
	res/drawable-inverted-xhdpi/ic_reply_holo_dark.png
	res/values/strings.xml

Change-Id: Ifa23298d859dc045d943b386b106a8aee76ec2c6
Also allow hidden method access.

http://review.cyanogenmod.org/#/c/49689/ requires the chips library to
need access to hidden methods, so the email app needs access to those
too.

Change-Id: If11c44b99a650f0fab958d37a3cdedc6cee3a317
Email: Update Polish translation

PS: Added missing string

Change-Id: Ia64da8d49439711d516213b59bd365204e3d73f2
Merge branch 'cm-10.2' of https://github.com/PAC-man/android_packages_apps_Email into jbam10