XAPK bugfixes, HTML default User-Agent

This commit is contained in:
Imran Remtulla
2023-05-09 00:37:06 -04:00
parent 219b04aedb
commit 408bca8951
5 changed files with 76 additions and 35 deletions

View File

@@ -444,7 +444,9 @@ class _AppPageState extends State<AppPage> {
Padding(
padding: const EdgeInsets.fromLTRB(0, 8, 0, 0),
child: LinearProgressIndicator(
value: app!.downloadProgress! / 100))
value: app!.downloadProgress! >= 0
? app.downloadProgress! / 100
: null))
],
));

View File

@@ -542,8 +542,12 @@ class AppsPageState extends State<AppsPage> {
? SizedBox(
width: 110,
child: Text(tr('percentProgress', args: [
listedApps[index].downloadProgress?.toInt().toString() ??
'100'
listedApps[index].downloadProgress! >= 0
? listedApps[index]
.downloadProgress!
.toInt()
.toString()
: tr('pleaseWait')
])))
: trailingRow,
onTap: () {