diff options
author | Wu-cheng Li <wuchengli@google.com> | 2012-09-27 14:01:39 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2012-09-27 15:13:56 +0800 |
commit | 07754f138bf0f1f23c952af3375889121df131b1 (patch) | |
tree | ca8fe5bfc4620a2fc4bb404ce560e43a64580397 /src/com | |
parent | 39834b19e5d60fa86213b166fa5f72d1d9e8916d (diff) | |
download | android_packages_apps_Snap-07754f138bf0f1f23c952af3375889121df131b1.tar.gz android_packages_apps_Snap-07754f138bf0f1f23c952af3375889121df131b1.tar.bz2 android_packages_apps_Snap-07754f138bf0f1f23c952af3375889121df131b1.zip |
Several secure album changes.
- Make the lock screen photo be a standard portrait size photo
- In the filmstrip, have the first tap on the lock screen photo
take the user directly to the unlock screen.
- Switch the asset to be a "locked" lock rather than an
"unlocked" lock.
bug:7192331
Change-Id: If7541cd67cdfb711f8dd721796db3343ae91343a
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/gallery3d/data/UnlockImage.java | 2 | ||||
-rw-r--r-- | src/com/android/gallery3d/ui/PhotoView.java | 15 |
2 files changed, 13 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/data/UnlockImage.java b/src/com/android/gallery3d/data/UnlockImage.java index 68e6f0f9c..d09856d69 100644 --- a/src/com/android/gallery3d/data/UnlockImage.java +++ b/src/com/android/gallery3d/data/UnlockImage.java @@ -59,7 +59,7 @@ public class UnlockImage extends MediaItem { public Bitmap run(JobContext jc) { int targetSize = MediaItem.getTargetSize(mType); Bitmap bitmap = BitmapFactory.decodeResource(mApplication.getResources(), - R.drawable.ic_lockscreen_unlock_normal); + R.drawable.ic_lockscreen_handle_normal); if (mType == MediaItem.TYPE_MICROTHUMBNAIL) { bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true); diff --git a/src/com/android/gallery3d/ui/PhotoView.java b/src/com/android/gallery3d/ui/PhotoView.java index 1cd5e26c7..2fbc3ff7e 100644 --- a/src/com/android/gallery3d/ui/PhotoView.java +++ b/src/com/android/gallery3d/ui/PhotoView.java @@ -964,9 +964,18 @@ public class PhotoView extends GLView { if (mFilmMode && !mDownInScrolling) { switchToHitPicture((int) (x + 0.5f), (int) (y + 0.5f)); - setFilmMode(false); - mIgnoreUpEvent = true; - return true; + + // If this is a lock screen photo, let the listener handle the + // event. Tapping on lock screen photo should take the user + // directly to the lock screen. + MediaItem item = mModel.getMediaItem(0); + int supported = 0; + if (item != null) supported = item.getSupportedOperations(); + if ((supported & MediaItem.SUPPORT_UNLOCK) == 0) { + setFilmMode(false); + mIgnoreUpEvent = true; + return true; + } } if (mListener != null) { |