uniquely use Locale.ENGLISH for english, not Locale.US

This commit is contained in:
B. Petersen 2024-08-16 18:56:40 +02:00
parent f1755b399b
commit 662b518dc4
2 changed files with 3 additions and 3 deletions

View file

@ -93,7 +93,7 @@ public final class GenericForegroundService extends Service {
private synchronized void handleStart(@NonNull Intent intent) {
Entry entry = Entry.fromIntent(intent);
Log.i(TAG, String.format(Locale.US, "handleStart() %s", entry));
Log.i(TAG, String.format(Locale.ENGLISH, "handleStart() %s", entry));
allActiveMessages.put(entry.id, entry);
}
@ -240,7 +240,7 @@ public final class GenericForegroundService extends Service {
@Override
public @NonNull String toString() {
return String.format(Locale.US, "ChannelId: %s Id: %d Progress: %d/%d %s", channelId, id, progress, progressMax, indeterminate ? "indeterminate" : "determinate");
return String.format(Locale.ENGLISH, "ChannelId: %s Id: %d Progress: %d/%d %s", channelId, id, progress, progressMax, indeterminate ? "indeterminate" : "determinate");
}
@Override

View file

@ -261,7 +261,7 @@ public class SaveAttachmentTask extends ProgressDialogAsyncTask<SaveAttachmentTa
} else {
String dir = getExternalPathForType(contentType);
if (dir == null) {
throw new IOException(String.format(Locale.US, "Path for type: %s was not available", contentType));
throw new IOException(String.format(Locale.ENGLISH, "Path for type: %s was not available", contentType));
}
String outputFileName = fileName;