summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCheng-Ru Lin <owenlin@google.com>2009-10-16 00:07:29 -0700
committerCheng-Ru Lin <owenlin@google.com>2009-10-21 00:03:07 -0700
commitda4608768624b1fb492f6676c510b37ad5f294ba (patch)
tree79fbdb95eba627469c768e74785ad2ef51a4a2a3 /src
parent3dea5d7604a0a84cbcf7c3aaf23f62a7a7b5765e (diff)
downloadLegacyCamera-da4608768624b1fb492f6676c510b37ad5f294ba.zip
LegacyCamera-da4608768624b1fb492f6676c510b37ad5f294ba.tar.gz
LegacyCamera-da4608768624b1fb492f6676c510b37ad5f294ba.tar.bz2
Chagne CropImage invocation to non-explicit.
Change-Id: I38d5e9bee524c5e63c2457751756ee800c9b1947
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/Camera.java4
-rw-r--r--src/com/android/camera/MenuHelper.java8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java
index 33dfa08..e83b8fb 100644
--- a/src/com/android/camera/Camera.java
+++ b/src/com/android/camera/Camera.java
@@ -1109,8 +1109,8 @@ public class Camera extends Activity implements View.OnClickListener,
newExtras.putBoolean("return-data", true);
}
- Intent cropIntent = new Intent();
- cropIntent.setClass(this, CropImage.class);
+ Intent cropIntent = new Intent("com.android.camera.action.CROP");
+
cropIntent.setData(tempUri);
cropIntent.putExtras(newExtras);
diff --git a/src/com/android/camera/MenuHelper.java b/src/com/android/camera/MenuHelper.java
index 3fed674..453d629 100644
--- a/src/com/android/camera/MenuHelper.java
+++ b/src/com/android/camera/MenuHelper.java
@@ -591,11 +591,11 @@ public class MenuHelper {
return;
}
- Intent cropIntent = new Intent();
- cropIntent.setClass(activity, CropImage.class);
+ Intent cropIntent = new Intent(
+ "com.android.camera.action.CROP");
cropIntent.setData(u);
- activity.startActivityForResult(cropIntent,
- RESULT_COMMON_MENU_CROP);
+ activity.startActivityForResult(
+ cropIntent, RESULT_COMMON_MENU_CROP);
}
});
return true;