Skip to content

Commit 97797a1

Browse files
committed
remove unused imports
1 parent 306ce85 commit 97797a1

6 files changed

Lines changed: 14 additions & 8 deletions

File tree

openandroidinstaller/app_state.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
from pathlib import Path
1717

18-
from flet import ProgressBar
1918
from installer_config import _load_config
2019

2120

@@ -53,4 +52,4 @@ def load_config(self, device_code: str):
5352
self.config.unlock_bootloader
5453
+ self.config.flash_recovery
5554
+ self.config.install_os
56-
)
55+
)

openandroidinstaller/openandroidinstaller.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
Icon,
2929
Image,
3030
Page,
31-
ProgressBar,
3231
Text,
3332
TextButton,
3433
UserControl,

openandroidinstaller/views/base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ def __init__(self, state: AppState, image: str = "placeholder.png"):
4343
)
4444
# main view row
4545
self.view = Row(
46-
[self.left_view, VerticalDivider(), Column(expand=True, controls=[self.right_view_header, self.right_view])],
46+
[
47+
self.left_view,
48+
VerticalDivider(),
49+
Column(expand=True, controls=[self.right_view_header, self.right_view]),
50+
],
4751
alignment="spaceEvenly",
4852
)

openandroidinstaller/views/step_view.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
Switch,
3131
alignment,
3232
colors,
33-
ProgressBar,
3433
)
3534

3635
from views import BaseView

openandroidinstaller/views/success_view.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ def close_window(e):
4444
# right view main part
4545
contribute_link = "https://github.com/openandroidinstaller-dev/openandroidinstaller#contributing"
4646
self.right_view.controls = [
47-
Text("Now your devices boots into the new OS. Have fun with it!", style="titleSmall"),
47+
Text(
48+
"Now your devices boots into the new OS. Have fun with it!",
49+
style="titleSmall",
50+
),
4851
Markdown(
49-
f"""
52+
f"""
5053
If you liked the tool, help spread the word and **share it with people** who might want to use it.
5154
5255
Also, you can consider contributing to make it better. There are a lot of different ways how you can help!

openandroidinstaller/views/welcome_view.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ def build(self):
4848
)
4949

5050
# build up the main view
51-
self.right_view_header.controls.extend([get_title("Welcome to the OpenAndroidInstaller!")])
51+
self.right_view_header.controls.extend(
52+
[get_title("Welcome to the OpenAndroidInstaller!")]
53+
)
5254
self.right_view.controls.extend(
5355
[
5456
Text(

0 commit comments

Comments
 (0)