Fixed bug in commitChips() that incorrectly rely on adapter state

In commitChips(), the first if statement should be executed when
current adapter has a recipient entry type of person. This code worked
properly before request permissions item was introduced. If this
feature is enabled, we would have one entry in our adapter that would
allow execution of this if statement, even if we do not meet the
expected criteria.

Instead of relying on adapter count, it should iterate through
adapter entries and see whether we have entry type of person.

Change-Id: I94840ff47110e584f97d5b42617c8dfbf3f640d6
1 file changed
tree: 3b9408d1f214d0b9c4692c289cd1c4ed6d81fc71
  1. res/
  2. sample/
  3. src/
  4. tests/
  5. Android.mk
  6. AndroidManifest.xml
  7. project.properties