summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Huang <weih@google.com>2009-10-02 10:58:49 -0700
committerWei Huang <weih@google.com>2009-10-02 11:52:40 -0700
commit6b3707452c5921c89258371eec140b0fb76766f8 (patch)
tree6100ba2d61c377f09d79762f8e431fa4b0d7831c
parentdf64cb41fb44d56957cba8e375788d98af7bd8b4 (diff)
downloadframeworks_base-6b3707452c5921c89258371eec140b0fb76766f8.zip
frameworks_base-6b3707452c5921c89258371eec140b0fb76766f8.tar.gz
frameworks_base-6b3707452c5921c89258371eec140b0fb76766f8.tar.bz2
bug 2161715: add the .jpg extension to the temp sdcard image file name so MMS can read the JPEG data using a file uri.
Change-Id: I1453950e406f1991e78530795ed28e6b4a7cf8c6
-rw-r--r--core/java/android/provider/Telephony.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/provider/Telephony.java b/core/java/android/provider/Telephony.java
index e219184..042c75e 100644
--- a/core/java/android/provider/Telephony.java
+++ b/core/java/android/provider/Telephony.java
@@ -1489,11 +1489,11 @@ public final class Telephony {
/**
* This is the scrap file we use to store the media attachment when the user
- * chooses to capture a photo to be attached (and could be used for other media types
- * if necessary). We pass {#link@Uri} to the Camera app, which streams the captured
- * image to the uri. Internally we write the media content to this file.
+ * chooses to capture a photo to be attached . We pass {#link@Uri} to the Camera app,
+ * which streams the captured image to the uri. Internally we write the media content
+ * to this file. It's named '.temp.jpg' so Gallery won't pick it up.
*/
- public static final String SCRAP_FILE_PATH = "/sdcard/mms/scrapSpace/file";
+ public static final String SCRAP_FILE_PATH = "/sdcard/mms/scrapSpace/.temp.jpg";
}
public static final class Intents {