summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera
diff options
context:
space:
mode:
authorlikaid <likaid@codeaurora.org>2015-04-03 14:43:56 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2015-04-08 00:21:55 -0700
commit708f92738228479dfdce23315badb3669b3c50d5 (patch)
treea93f136fb83c185f48b4f5cc34d9de501c2d5aa3 /src/com/android/camera
parent2405cbf18879dd524120d82a21233863b79af5be (diff)
downloadandroid_packages_apps_Snap-708f92738228479dfdce23315badb3669b3c50d5.tar.gz
android_packages_apps_Snap-708f92738228479dfdce23315badb3669b3c50d5.tar.bz2
android_packages_apps_Snap-708f92738228479dfdce23315badb3669b3c50d5.zip
SnapdragonCamera: Gallery2 Can't show the newest picture
Camera give Gallery2 the newest picture's index is wrong in RTL mode. Give Gallery2 the correct index. Change-Id: Ie0f3835f0a9ab46b408ffe0b4ea5dd60906267e0 CRs-Fixed: 816284
Diffstat (limited to 'src/com/android/camera')
-rw-r--r--src/com/android/camera/CameraActivity.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/camera/CameraActivity.java b/src/com/android/camera/CameraActivity.java
index 7ee538fda..71e0db051 100644
--- a/src/com/android/camera/CameraActivity.java
+++ b/src/com/android/camera/CameraActivity.java
@@ -133,6 +133,7 @@ public class CameraActivity extends Activity
public static final String ACTION_TRIM_VIDEO =
"com.android.camera.action.TRIM";
public static final String MEDIA_ITEM_PATH = "media-item-path";
+ public static final String KEY_TOTAL_NUMBER = "total-number";
// Used to show whether Gallery was launched from Snapcam
private static final String KEY_FROM_SNAPCAM = "from-snapcam";
@@ -589,6 +590,7 @@ public class CameraActivity extends Activity
intent.setAction(Intent.ACTION_VIEW);
intent.setData(uri);
intent.putExtra(KEY_FROM_SNAPCAM, true);
+ intent.putExtra(KEY_TOTAL_NUMBER, (adapter.getTotalNumber() -1));
startActivity(intent);
} catch (ActivityNotFoundException ex) {
try {