Commit b7525af7 authored by Finnur Thorarinsson's avatar Finnur Thorarinsson Committed by Commit Bot

Contacts Picker: Remove TODO.

After inspecting the AOSP code and talking to a member of the Android Contacts
team, it looks like there is no code path that would result in an image being
handed to our Contact Picker, without Android Contacts first decoding it in
the same way we do.

Bug: 860467
Change-Id: Ifb1c75cf0048c843644506e6d0fe4f9b886b6095
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1943181Reviewed-by: default avatarPeter Beverloo <peter@chromium.org>
Commit-Queue: Finnur Thorarinsson <finnur@chromium.org>
Cr-Commit-Position: refs/heads/master@{#720209}
parent edeca5c6
...@@ -78,7 +78,6 @@ class FetchIconWorkerTask extends AsyncTask<Bitmap> { ...@@ -78,7 +78,6 @@ class FetchIconWorkerTask extends AsyncTask<Bitmap> {
if (cursor.moveToFirst()) { if (cursor.moveToFirst()) {
byte[] data = cursor.getBlob(0); byte[] data = cursor.getBlob(0);
if (data != null) { if (data != null) {
// TODO(finnur): Before launching, verify images have already been re-encoded.
return BitmapFactory.decodeStream(new ByteArrayInputStream(data)); return BitmapFactory.decodeStream(new ByteArrayInputStream(data));
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment