mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: installer progress bar
This commit is contained in:
parent
2944a2b788
commit
ecc2e5b688
@ -156,7 +156,7 @@ class MainActivity : FlutterActivity() {
|
||||
"update",
|
||||
mapOf(
|
||||
"progress" to
|
||||
0.2,
|
||||
-1.0,
|
||||
"header" to
|
||||
"",
|
||||
"log" to
|
||||
@ -173,7 +173,7 @@ class MainActivity : FlutterActivity() {
|
||||
"update",
|
||||
mapOf(
|
||||
"progress" to
|
||||
0.2,
|
||||
-1.0,
|
||||
"header" to
|
||||
"",
|
||||
"log" to
|
||||
@ -190,7 +190,7 @@ class MainActivity : FlutterActivity() {
|
||||
"update",
|
||||
mapOf(
|
||||
"progress" to
|
||||
0.2,
|
||||
-1.0,
|
||||
"header" to
|
||||
"",
|
||||
"log" to
|
||||
@ -207,7 +207,7 @@ class MainActivity : FlutterActivity() {
|
||||
"update",
|
||||
mapOf(
|
||||
"progress" to
|
||||
0.2,
|
||||
-1.0,
|
||||
"header" to
|
||||
"",
|
||||
"log" to
|
||||
|
@ -69,7 +69,9 @@ class InstallerViewModel extends BaseViewModel {
|
||||
}
|
||||
|
||||
void update(double value, String header, String log) {
|
||||
progress = value;
|
||||
if (value > 0) {
|
||||
progress = value;
|
||||
}
|
||||
isPatching = progress == 1.0 ? false : true;
|
||||
if (progress == 0.0) {
|
||||
logs = '';
|
||||
|
Loading…
Reference in New Issue
Block a user