Skip to content

Commit 7490942

Browse files
authored
Merge pull request #2134 from ImranR98/dev
Better file naming on selective export + updated screenshots
2 parents 4c94f27 + 794be43 commit 7490942

File tree

7 files changed

+5
-3
lines changed

7 files changed

+5
-3
lines changed

assets/screenshots/1.apps.png

-72.5 KB
Loading

assets/screenshots/2.dark_theme.png

-64.2 KB
Loading

assets/screenshots/3.material_you.png

-492 Bytes
Loading

assets/screenshots/4.app.png

6.54 KB
Loading

assets/screenshots/5.app_opts.png

-7.63 KB
Loading

assets/screenshots/6.app_webview.png

-98 KB
Loading

lib/pages/apps.dart

+5-3
Original file line numberDiff line numberDiff line change
@@ -911,13 +911,15 @@ class AppsPageState extends State<AppsPage> {
911911
.map((e) => e.id)
912912
.toList(),
913913
overrideExportSettings: false));
914+
String fn =
915+
'${tr('obtainiumExportHyphenatedLowercase')}-${DateTime.now().toIso8601String().replaceAll(':', '-')}-count-${selectedApps.length}';
914916
XFile f = XFile.fromData(
915917
Uint8List.fromList(
916918
utf8.encode(exportJSON)),
917919
mimeType: 'application/json',
918-
name:
919-
'${tr('obtainiumExportHyphenatedLowercase')}-${selectedApps.length}-${DateTime.now().millisecondsSinceEpoch}');
920-
Share.shareXFiles([f]);
920+
name: fn);
921+
Share.shareXFiles([f],
922+
fileNameOverrides: ['$fn.json']);
921923
},
922924
child: Text(
923925
'${tr('share')} - ${tr('obtainiumExport')}')),

0 commit comments

Comments
 (0)