diff --git a/sbapp/main.py b/sbapp/main.py index bd613a9..fb379e8 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -958,6 +958,7 @@ class SidebandApp(MDApp): self.sideband.save_configuration() self.root.ids.settings_lxmf_address.text = RNS.hexrep(self.sideband.lxmf_destination.hash, delimit=False) + self.root.ids.settings_identity_hash.text = RNS.hexrep(self.sideband.lxmf_destination.identity.hash, delimit=False) self.root.ids.settings_display_name.text = self.sideband.config["display_name"] self.root.ids.settings_display_name.bind(on_text_validate=save_disp_name) @@ -972,7 +973,7 @@ class SidebandApp(MDApp): self.root.ids.settings_propagation_node_address.bind(on_text_validate=save_prop_addr) self.root.ids.settings_propagation_node_address.bind(focus=save_prop_addr) - if android_api_version >= 26: + if not RNS.vendor.platformutils.is_android() or android_api_version >= 26: self.root.ids.settings_notifications_on.active = self.sideband.config["notifications_on"] self.root.ids.settings_notifications_on.bind(active=save_notifications_on) else: diff --git a/sbapp/ui/layouts.py b/sbapp/ui/layouts.py index cb59cde..15c3587 100644 --- a/sbapp/ui/layouts.py +++ b/sbapp/ui/layouts.py @@ -983,14 +983,6 @@ MDNavigationLayout: max_text_length: 128 font_size: dp(24) - MDTextField: - id: settings_lxmf_address - hint_text: "Your LXMF Address" - text: "" - disabled: False - max_text_length: 32 - font_size: dp(24) - MDTextField: id: settings_propagation_node_address hint_text: "LXMF Propagation Node" @@ -1007,6 +999,30 @@ MDNavigationLayout: max_text_length: 32 font_size: dp(24) + MDLabel: + text: "" + font_style: "H6" + + MDLabel: + text: "Address & Identity" + font_style: "H6" + + MDTextField: + id: settings_lxmf_address + hint_text: "Your LXMF Address" + text: "" + disabled: False + max_text_length: 32 + font_size: dp(24) + + MDTextField: + id: settings_identity_hash + hint_text: "Your Identity Hash" + text: "" + disabled: False + max_text_length: 32 + font_size: dp(24) + MDBoxLayout: orientation: "vertical"