Skip to content

Commit 616c7e6

Browse files
author
rudu
committed
Fix
1 parent 812bb51 commit 616c7e6

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

openandroidinstaller/views/select_view.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,16 @@ def build(self):
146146
self.info_field = Row()
147147

148148
# Device specific notes
149+
notes = ""
150+
if "brand" in self.state.config.metadata and (
151+
self.state.config.metadata['brand'] == "xiaomi" or self.state.config.metadata['brand'] == "poco"):
152+
notes += "- If something goes wrong, you can reinstall MiUI here :\n<https://xiaomifirmwareupdater.com/miui/lavender/>\n\n"
153+
if "untested" in self.state.config.metadata and self.state.config.metadata['untested'] == True:
154+
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"
149155
if "notes" in self.state.config.metadata:
150-
notes = ""
151-
if "brand" in self.state.config.metadata and (self.state.config.metadata['brand'] == "xiaomi" or self.state.config.metadata['brand'] == "poco"):
152-
notes += "- If something goes wrong, you can reinstall MiUI here :\n<https://xiaomifirmwareupdater.com/miui/lavender/>\n\n"
153-
if "untested" in self.state.config.metadata and self.state.config.metadata['untested'] == True:
154-
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"
155156
for note in self.state.config.metadata['notes']:
156157
notes += "- " + note + "\n\n"
158+
if notes != "":
157159
self.right_view.controls.extend(
158160
[
159161
Text(

0 commit comments

Comments
 (0)