summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2013-04-23 10:19:28 -0400
committerChris Wren <cwren@android.com>2013-04-23 10:19:28 -0400
commitad757b21555602ec2bd5c53c842cf79e36057601 (patch)
tree4c3d357aec28988c5df3484093271e0f22ff705b
parent8a73e2b2210a77c432e6e8241f3a6eb700a594cb (diff)
downloadandroid_packages_screensavers_PhotoTable-ad757b21555602ec2bd5c53c842cf79e36057601.tar.gz
android_packages_screensavers_PhotoTable-ad757b21555602ec2bd5c53c842cf79e36057601.tar.bz2
android_packages_screensavers_PhotoTable-ad757b21555602ec2bd5c53c842cf79e36057601.zip
catch InstantUploadAuto type.
Bug: 8693493 Change-Id: I00e792f0fe6bc11bf2f32b41399d26cad62d8a41
-rw-r--r--src/com/android/dreams/phototable/PicasaSource.java4
1 files changed, 3 insertions, 1 deletions
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) {