You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openandroidinstaller/views/select_view.py
+25-16Lines changed: 25 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -179,21 +179,8 @@ def build(self):
179
179
self.additional_image_selection=Column()
180
180
181
181
# Device specific notes
182
-
notes=""
183
-
if"brand"inself.state.config.metadataand (
184
-
self.state.config.metadata["brand"] =="xiaomi"
185
-
orself.state.config.metadata["brand"] =="poco"
186
-
):
187
-
notes+="- If something goes wrong, you can reinstall MiUI here :\n<https://xiaomifirmwareupdater.com/miui/lavender/>\n\n"
188
-
if (
189
-
"untested"inself.state.config.metadata
190
-
andself.state.config.metadata["untested"] ==True
191
-
):
192
-
notes+="- **This device has never been tested with OpenAndroidInstaller.** The installation can go wrong. You may have to finish the installation process with command line. If you test, please report the result on GitHub.\n\n"
193
-
if"notes"inself.state.config.metadata:
194
-
fornoteinself.state.config.metadata["notes"]:
195
-
notes+="- "+note+"\n\n"
196
-
ifnotes!="":
182
+
notes=self.get_notes()
183
+
ifnotes:
197
184
self.right_view.controls.extend(
198
185
[
199
186
Text(
@@ -202,9 +189,10 @@ def build(self):
202
189
color=colors.RED,
203
190
weight="bold",
204
191
),
205
-
Markdown(f"""{notes}"""),
192
+
Markdown(notes),
206
193
]
207
194
)
195
+
208
196
# if there is an available download, show the button to the page
"- **This device has not been tested with OpenAndroidInstaller yet.** The installation can go wrong. You may have to finish the installation process with command line. If you test, please report the result on GitHub."
0 commit comments