Skip to content

Commit 410955b

Browse files
committed
Fix progress bar and progress ring after update
1 parent 6d00263 commit 410955b

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

openandroidinstaller/assets/configs/ocean.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,3 @@ steps:
5555
In some cases, the inactive slot can be unpopulated or contain much older firmware than the active slot, leading to various issues including a potential hard-brick.
5656
We can ensure none of that will happen by copying the contents of the active slot to the inactive slot. Press 'confirm and run' to to this. Once you are in the bootloader again, continue.
5757
command: adb_twrp_copy_partitions
58-
- type: call_button
59-
img: twrp-start.jpeg
60-
content: >
61-
Now we need to boot into recovery again. Press run and when you see the TWRP screen you can continue.
62-
command: fastboot_boot_recovery

openandroidinstaller/views/step_view.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,9 @@ def check_advanced_switch(e):
158158
self.right_view.controls.extend(
159159
[Row([link_button(self.step.link, "Open Link"), self.confirm_button])]
160160
)
161-
162161
elif self.step.type != "text":
163162
logger.error(f"Unknown step type: {self.step.type}")
164163
raise Exception(f"Unknown step type: {self.step.type}")
165-
166164
# if skipping is allowed add a button to the view
167165
if self.step.allow_skip or self.state.test:
168166
self.right_view.controls.append(

openandroidinstaller/widgets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def clear(self):
8080
self.update()
8181

8282

83-
class ProgressIndicator(Container):
83+
class ProgressIndicator(Row):
8484
def __init__(self, expand: bool = True):
8585
super().__init__(expand=expand)
8686
# placeholder for the flashing progressbar
@@ -131,6 +131,7 @@ def display_progress_bar(self, line: str):
131131
percentage_done = max(1, min(99, percentage_done))
132132
# update the progress bar
133133
self.set_progress_bar(percentage_done)
134+
self.update()
134135

135136
def set_progress_bar(self, percentage_done: int):
136137
"""Set the progress bar to the given percentage.

0 commit comments

Comments
 (0)