From ad757b21555602ec2bd5c53c842cf79e36057601 Mon Sep 17 00:00:00 2001 From: Chris Wren Date: Tue, 23 Apr 2013 10:19:28 -0400 Subject: catch InstantUploadAuto type. Bug: 8693493 Change-Id: I00e792f0fe6bc11bf2f32b41399d26cad62d8a41 --- src/com/android/dreams/phototable/PicasaSource.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/dreams/phototable/PicasaSource.java b/src/com/android/dreams/phototable/PicasaSource.java index eb8fd1f..0db98af 100644 --- a/src/com/android/dreams/phototable/PicasaSource.java +++ b/src/com/android/dreams/phototable/PicasaSource.java @@ -63,6 +63,7 @@ public class PicasaSource extends CursorPhotoSource { private static final String PICASA_TYPE_IMAGE_VALUE = "image"; private static final String PICASA_POSTS_TYPE = "Buzz"; private static final String PICASA_UPLOAD_TYPE = "InstantUpload"; + private static final String PICASA_UPLOADAUTO_TYPE = "InstantUploadAuto"; private final int mMaxPostAblums; private final String mPostsAlbumName; @@ -357,7 +358,8 @@ public class PicasaSource extends CursorPhotoSource { String user = (userIndex >= 0 ? cursor.getString(userIndex) : "-1"); String type = (typeIndex >= 0 ? cursor.getString(typeIndex) : "none"); boolean isPosts = (typeIndex >= 0 && PICASA_POSTS_TYPE.equals(type)); - boolean isUpload = (typeIndex >= 0 && PICASA_UPLOAD_TYPE.equals(type)); + boolean isUpload = (typeIndex >= 0 && + (PICASA_UPLOAD_TYPE.equals(type) || PICASA_UPLOADAUTO_TYPE.equals(type))); String account = accounts.get(user); if (account == null) { -- cgit v1.2.3