diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2016-07-26 20:40:24 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-07-26 20:40:23 -0700 |
| commit | 4edad0fbfadf5bf47726a33aa1a9a62dedd49a3a (patch) | |
| tree | 7310629558205ae4fb43befaae363c6a42017827 /src/com/android | |
| parent | 975dd5f4eb6184fbca64c91a891536aa9610cf9b (diff) | |
| parent | 4068763b7f7c95b8305f957138735efd80d739d2 (diff) | |
| download | android_packages_apps_Gallery2-4edad0fbfadf5bf47726a33aa1a9a62dedd49a3a.tar.gz android_packages_apps_Gallery2-4edad0fbfadf5bf47726a33aa1a9a62dedd49a3a.tar.bz2 android_packages_apps_Gallery2-4edad0fbfadf5bf47726a33aa1a9a62dedd49a3a.zip | |
Merge "SnapdragonGallery: fix blank gray picture after modify"
Diffstat (limited to 'src/com/android')
| -rwxr-xr-x | src/com/android/gallery3d/app/PhotoDataAdapter.java | 7 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/com/android/gallery3d/app/PhotoPage.java | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/app/PhotoDataAdapter.java b/src/com/android/gallery3d/app/PhotoDataAdapter.java index 05bd37687..c6ad14ded 100755 --- a/src/com/android/gallery3d/app/PhotoDataAdapter.java +++ b/src/com/android/gallery3d/app/PhotoDataAdapter.java @@ -162,6 +162,7 @@ public class PhotoDataAdapter implements PhotoPage.Model { private int mCameraIndex; private boolean mIsPanorama; private boolean mIsStaticCamera; + private boolean mIsFromTimelineScreen; private boolean mIsActive; private boolean mNeedFullImage; private int mFocusHintDirection = FOCUS_HINT_NEXT; @@ -187,7 +188,7 @@ public class PhotoDataAdapter implements PhotoPage.Model { // preview. If cameraIndex < 0, there is no camera preview. public PhotoDataAdapter(AbstractGalleryActivity activity, PhotoView view, MediaSet mediaSet, Path itemPath, int indexHint, int cameraIndex, - boolean isPanorama, boolean isStaticCamera) { + boolean isPanorama, boolean isStaticCamera, boolean isFromTimelineScreen) { mActivity = activity; mSource = Utils.checkNotNull(mediaSet); mPhotoView = Utils.checkNotNull(view); @@ -196,6 +197,7 @@ public class PhotoDataAdapter implements PhotoPage.Model { mCameraIndex = cameraIndex; mIsPanorama = isPanorama; mIsStaticCamera = isStaticCamera; + mIsFromTimelineScreen = isFromTimelineScreen; mThreadPool = activity.getThreadPool(); mNeedFullImage = true; @@ -1307,6 +1309,9 @@ public class PhotoDataAdapter implements PhotoPage.Model { } mDirty = false; version = mSource.reload(); + if (mIsFromTimelineScreen) { + mSource.setClusterKind(GalleryActivity.CLUSTER_ALBUMSET_NO_TITLE); + } //if data is not ready, continue to reload if (version == MediaObject.INVALID_DATA_VERSION) { continue; diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index df3229f95..0c82944d8 100644..100755 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -507,7 +507,8 @@ public abstract class PhotoPage extends ActivityState implements mActivity, mPhotoView, mMediaSet, itemPath, mCurrentIndex, mAppBridge == null ? -1 : 0, mAppBridge == null ? false : mAppBridge.isPanorama(), - mAppBridge == null ? false : mAppBridge.isStaticCamera()); + mAppBridge == null ? false : mAppBridge.isStaticCamera(), + mIsFromTimelineScreen); mModel = pda; mPhotoView.setModel(mModel); |
