Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anon1892 committed Aug 2, 2023
1 parent 812bb51 commit 616c7e6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions openandroidinstaller/views/select_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,16 @@ def build(self):
self.info_field = Row()

# Device specific notes
notes = ""
if "brand" in self.state.config.metadata and (
self.state.config.metadata['brand'] == "xiaomi" or self.state.config.metadata['brand'] == "poco"):
notes += "- If something goes wrong, you can reinstall MiUI here :\n<https://xiaomifirmwareupdater.com/miui/lavender/>\n\n"
if "untested" in self.state.config.metadata and self.state.config.metadata['untested'] == True:
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"
if "notes" in self.state.config.metadata:
notes = ""
if "brand" in self.state.config.metadata and (self.state.config.metadata['brand'] == "xiaomi" or self.state.config.metadata['brand'] == "poco"):
notes += "- If something goes wrong, you can reinstall MiUI here :\n<https://xiaomifirmwareupdater.com/miui/lavender/>\n\n"
if "untested" in self.state.config.metadata and self.state.config.metadata['untested'] == True:
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"
for note in self.state.config.metadata['notes']:
notes += "- " + note + "\n\n"
if notes != "":
self.right_view.controls.extend(
[
Text(
Expand Down

0 comments on commit 616c7e6

Please sign in to comment.