1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-12-22 10:58:01 +01:00

new date format for screenshots

This commit is contained in:
scoute-dich 2016-04-23 20:58:37 +02:00
parent f439be77d7
commit 59a1174b62

View file

@ -87,6 +87,7 @@ import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
@ -629,8 +630,9 @@ public class MainActivity extends AppCompatActivity
if (!directory.exists()) {
directory.mkdirs();
}
Date date = new Date();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd_HH-mm");
DateFormat dateFormat = android.text.format.DateFormat.getDateFormat(getApplicationContext());
webView.measure(View.MeasureSpec.makeMeasureSpec(
View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED),
@ -707,8 +709,9 @@ public class MainActivity extends AppCompatActivity
if (!directory.exists()) {
directory.mkdirs();
}
Date date = new Date();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd_HH-mm");
DateFormat dateFormat = android.text.format.DateFormat.getDateFormat(getApplicationContext());
webView.measure(View.MeasureSpec.makeMeasureSpec(
View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED),