Allow to paste text or html into a chip

Allows to paste into a chip HTML mime content, as long as
it can be represented by text.

This resolves the inability to paste email addresses copied from
a web page, with content text/html.

Also, fix an IndexOutfOfBounds bug when there is no selection.

Bug: 13361722 users cannot paste html content in chip
Change-Id: I31434105e4326d78e99df338f81d9e56fc5b83c5

Conflicts:
	src/com/android/ex/chips/RecipientEditTextView.java
2 files changed
tree: 0294f529884b72f42d76dd74a89a57ca45e2c983
  1. res/
  2. sample/
  3. src/
  4. tests/
  5. Android.mk
  6. AndroidManifest.xml
  7. project.properties