Skip to content

Commit

Permalink
Merge pull request #164 from majedalmoqbeli/master
Browse files Browse the repository at this point in the history
fixing issue #163 by setting local to English when create name of image
  • Loading branch information
jrvansuita authored Apr 3, 2023
2 parents dbdfaf8 + 598419c commit 333c7bf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Locale;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
Expand Down Expand Up @@ -123,7 +124,7 @@ private File cameraFile() {
int stringId = applicationInfo.labelRes;
String appName = stringId == 0 ? applicationInfo.nonLocalizedLabel.toString() : activity.getString(stringId);
directory = new File(activity.getExternalFilesDir(Environment.DIRECTORY_PICTURES), appName);
String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date());
String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss", Locale.ENGLISH).format(new Date());
if (setup.isVideo()) {
fileName = timeStamp + ".mp4";
} else {
Expand Down

0 comments on commit 333c7bf

Please sign in to comment.