mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-30 14:04:26 +02:00
fix: Fix white-screen when trying to install conflicting apps
When you tried to install a patched app, but it conflicted with an existing installation, the screen would go blank. This was caused by trying to use an argument on a translation with no arguments.
This commit is contained in:
parent
982249f974
commit
4acd738353
@ -297,6 +297,18 @@ class PatcherAPI {
|
|||||||
);
|
);
|
||||||
bool cleanInstall = false;
|
bool cleanInstall = false;
|
||||||
final bool isFixable = statusCode == 4 || statusCode == 5;
|
final bool isFixable = statusCode == 4 || statusCode == 5;
|
||||||
|
|
||||||
|
var description = t['installErrorDialog.${statusValue}_description'];
|
||||||
|
if (statusCode == 2) {
|
||||||
|
description = description(
|
||||||
|
packageName: statusCode == 2
|
||||||
|
? {
|
||||||
|
'packageName': status['otherPackageName'],
|
||||||
|
}
|
||||||
|
: null,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
await showDialog(
|
await showDialog(
|
||||||
context: _managerAPI.ctx!,
|
context: _managerAPI.ctx!,
|
||||||
builder: (context) => AlertDialog(
|
builder: (context) => AlertDialog(
|
||||||
@ -306,15 +318,7 @@ class PatcherAPI {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(description),
|
||||||
t['installErrorDialog.${statusValue}_description'](
|
|
||||||
packageName: statusCode == 2
|
|
||||||
? {
|
|
||||||
'packageName': status['otherPackageName'],
|
|
||||||
}
|
|
||||||
: null,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
actions: (status == null)
|
actions: (status == null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user