1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-25 13:52:08 +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.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream; import java.io.OutputStream;
import java.text.DateFormat;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
@ -629,8 +630,9 @@ public class MainActivity extends AppCompatActivity
if (!directory.exists()) { if (!directory.exists()) {
directory.mkdirs(); directory.mkdirs();
} }
Date date = new Date(); 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( webView.measure(View.MeasureSpec.makeMeasureSpec(
View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED), View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED),
@ -707,8 +709,9 @@ public class MainActivity extends AppCompatActivity
if (!directory.exists()) { if (!directory.exists()) {
directory.mkdirs(); directory.mkdirs();
} }
Date date = new Date(); 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( webView.measure(View.MeasureSpec.makeMeasureSpec(
View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED), View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED),