summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/screenshot
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2015-04-03 10:01:40 -0700
committerWinson Chung <winsonc@google.com>2015-04-03 10:01:43 -0700
commitb9c74ace6dc5285daafddfe78532ab2d8cc91906 (patch)
treefdcbaf87c9661819b0aa0469b6c74b661db44b02 /packages/SystemUI/src/com/android/systemui/screenshot
parentaee097c5802adcd3d52028fbd1ad3ab2cf92e46b (diff)
downloadframeworks_base-b9c74ace6dc5285daafddfe78532ab2d8cc91906.zip
frameworks_base-b9c74ace6dc5285daafddfe78532ab2d8cc91906.tar.gz
frameworks_base-b9c74ace6dc5285daafddfe78532ab2d8cc91906.tar.bz2
Making the screenshot filename smaller to fix issue on certain platforms.
Bug: 11574102 Change-Id: Ia71e600a6d484bc36624ae959841ae0b3f23697a
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/screenshot')
-rw-r--r--packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
index 9d349ab..105bf0f 100644
--- a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
+++ b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
@@ -122,7 +122,7 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi
// Prepare all the output metadata
mImageTime = System.currentTimeMillis();
- String imageDate = new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss").format(new Date(mImageTime));
+ String imageDate = new SimpleDateFormat("yyyyMMdd-HHmmss").format(new Date(mImageTime));
mImageFileName = String.format(SCREENSHOT_FILE_NAME_TEMPLATE, imageDate);
mScreenshotDir = new File(Environment.getExternalStoragePublicDirectory(