diff --git a/android/app/src/main/kotlin/app/revanced/manager/MainActivity.kt b/android/app/src/main/kotlin/app/revanced/manager/MainActivity.kt index 9e2f2ca8..fa12cedc 100644 --- a/android/app/src/main/kotlin/app/revanced/manager/MainActivity.kt +++ b/android/app/src/main/kotlin/app/revanced/manager/MainActivity.kt @@ -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 diff --git a/lib/ui/views/installer/installer_viewmodel.dart b/lib/ui/views/installer/installer_viewmodel.dart index c67fc4a9..71683708 100644 --- a/lib/ui/views/installer/installer_viewmodel.dart +++ b/lib/ui/views/installer/installer_viewmodel.dart @@ -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 = '';