Loading packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java +2 −2 Original line number Diff line number Diff line Loading @@ -61,6 +61,7 @@ import com.android.systemui.R; import java.io.File; import java.io.OutputStream; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; Loading Loading @@ -211,8 +212,7 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi values.put(MediaStore.Images.ImageColumns.HEIGHT, mImageHeight); Uri uri = resolver.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); String subjectDate = new SimpleDateFormat("hh:mma, MMM dd, yyyy") .format(new Date(mImageTime)); String subjectDate = DateFormat.getDateTimeInstance().format(new Date(mImageTime)); String subject = String.format(SCREENSHOT_SHARE_SUBJECT_TEMPLATE, subjectDate); Intent sharingIntent = new Intent(Intent.ACTION_SEND); sharingIntent.setType("image/png"); Loading Loading
packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java +2 −2 Original line number Diff line number Diff line Loading @@ -61,6 +61,7 @@ import com.android.systemui.R; import java.io.File; import java.io.OutputStream; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; Loading Loading @@ -211,8 +212,7 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi values.put(MediaStore.Images.ImageColumns.HEIGHT, mImageHeight); Uri uri = resolver.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); String subjectDate = new SimpleDateFormat("hh:mma, MMM dd, yyyy") .format(new Date(mImageTime)); String subjectDate = DateFormat.getDateTimeInstance().format(new Date(mImageTime)); String subject = String.format(SCREENSHOT_SHARE_SUBJECT_TEMPLATE, subjectDate); Intent sharingIntent = new Intent(Intent.ACTION_SEND); sharingIntent.setType("image/png"); Loading