Menu list updating method and electronic device
By setting focus menu items in the new menu list and placing new menu items, the repeated broadcasting problem caused by improper insertion position of new menu items after the menu list is updated, and rapid traversal and improved user experience is achieved.
Patent Information
- Application Number
- CN202110221598.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-27
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2041-02-27
AI Technical Summary
In the prior art, after the menu list is updated, the added menu item may be inserted into the middle of the broadcasted menu item, causing the user to repeatedly broadcast the known menu item when traversing the menu list, and the new menu item cannot be quickly found, affecting the user experience.
By setting the focus menu items in the new menu list and placing the added menu items after the focus menu items when updating the menu list, you can quickly find the added menu items by ensuring that the user does not repeatedly broadcast known menu items when traversing the menu list.
It realizes that after the menu list is updated, it quickly traverses to new menu items, avoids repeated broadcasts and improves the user experience of electronic devices.
Smart Images

Figure CN115061611B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal and communication technology, and in particular to a menu list updating method and electronic device. Background Art
[0002] As major manufacturers continue to improve and perfect the barrier-free functions of electronic devices, more and more visually impaired users are beginning to use electronic devices. After the barrier-free function is turned on, electronic devices can broadcast the content displayed in the user interface. Users can obtain relevant information by listening to the broadcast content.
[0003] For a menu list on a user interface, a user can traverse the menu list in a certain way of operating an electronic device to obtain all the contents in the menu list. For example, a user obtains the contents displayed in the first menu item in a menu list, and the user can slide down the user interface to obtain the contents displayed in the second menu item, and then slide down the user interface to obtain the contents displayed in the third menu item. By analogy, the user can obtain all the contents displayed in the menu list by sliding down the user interface in a way of operating an electronic device.
[0004] In the prior art, for an updateable menu list, there will be some newly added menu items in the updated menu list. One of the newly added menu items may be arranged in the middle of some menu items that have been broadcasted by the electronic device. Assuming that the user needs to obtain the newly added menu item, when the user continues to traverse the updated menu list by sliding down the user interface, which is a way of operating the electronic device, some menu items that have been broadcasted by the electronic device will be repeatedly broadcasted, and the electronic device cannot quickly traverse the menu list, resulting in a poor user experience of the electronic device. Summary of the invention
[0005] The present application provides a menu list updating method and an electronic device. After the menu list is updated, the electronic device can quickly traverse the menu list and find the desired menu items, thereby improving the user experience of the electronic device.
[0006] In a first aspect, the present application provides a menu list updating method, the method comprising: an electronic device displays an old menu list; the electronic device updates the old menu list to obtain a new menu list; the electronic device sets a focus menu item in the new menu list according to the focus menu item in the old menu list; the electronic device displays the new menu list; in the new menu list, a newly added menu item is not displayed before the focus menu item in the new menu list; the newly added menu item refers to a menu item that does not exist in the old menu list but exists in the new menu list.
[0007] In the above embodiment, when the menu list is updated, the newly added menu item can be used as the focus menu item or displayed after the focus menu item. The electronic device can quickly traverse these newly added menu items, so that when the user traverses the updated menu list, all menu items can be quickly traversed without unnecessary repeated broadcasts, and the menu item expected by the user can be found, thereby improving the user's experience of using the electronic device.
[0008] In combination with some embodiments of the first aspect, in some embodiments, the electronic device displays the new menu list, specifically including: the electronic device displays the new menu list; in the new menu list, the newly added menu items sorted according to the business sorting rules are displayed after the valid menu items; the valid menu items refer to menu items that exist both in the old menu list and in the new menu list.
[0009] In the above embodiment, the valid menu items are in the front part of the new menu list, and the newly added menu items are in the back part of the new menu list. The newly added menu items will not be displayed between the menu items that have been broadcasted by the electronic device, and when the electronic device traverses to these newly added menu items, unnecessary repeated broadcasts will not be caused. In this way, the electronic device can quickly traverse the new menu list and find the menu items desired by the user.
[0010] In combination with some embodiments of the first aspect, in some embodiments, the method also includes: the electronic device places the ordered new list after the old valid list to obtain the new menu list; the old valid list refers to a set of valid menu items; the ordered new list refers to a set of new menu items sorted according to the business sorting rules.
[0011] In combination with some embodiments of the first aspect, in some embodiments, it is characterized in that: when the focus menu item in the old menu list is an invalid menu item, in the new menu list, all menu items after the focus menu item in the old menu list and the newly added menu items are sorted according to the business sorting rules and are displayed after the valid menu item before the focus menu item in the old menu list; when the focus menu item in the old menu list is a valid menu item, in the new menu list, all menu items after the focus menu item in the old menu list and the newly added menu items are sorted according to the business sorting rules and are displayed after the focus menu item in the old menu list and the valid menu item before the focus menu item in the old menu list.
[0012] In the above embodiment, the valid menu items after the focus menu item in the old menu list can be sorted together with the newly added menu items according to the business sorting rule, so that all the menu items after the focus menu item in the new menu list appear to be more orderly, and the menu item desired by the user is more likely to be close to the focus menu item. In this way, the electronic device can find the menu item desired by the user more quickly.
[0013] In combination with some embodiments of the first aspect, in some embodiments, the method also includes: the electronic device updates the old menu list to obtain a new menu list, including: when the focus menu item in the old menu list is an invalid menu item, the electronic device places the ordered post-focus list after the old pre-focus list to obtain the new menu list; the ordered post-focus list refers to the set of all menu items after the focus menu item in the old menu list and the newly added menu items are sorted according to the business sorting rules; the old pre-focus list refers to the set of valid menu items before the focus menu item in the old menu list; when the focus menu item in the old menu list is a valid menu item, the electronic device places the ordered post-focus list after the old pre-focus list to obtain the new menu list; the ordered post-focus list refers to the set of all menu items after the focus menu item in the old menu list and the newly added menu items are sorted according to the business sorting rules; the old pre-focus list refers to the focus menu item in the old menu list and the set of valid menu items before the focus menu item in the old menu list.
[0014] In combination with some embodiments of the first aspect, in some embodiments, the electronic device displays the new menu list, specifically including: the electronic device displays the new menu list; in the new menu list, all menu items in the old menu list that have not been broadcast by the electronic device and the newly added menu items are sorted according to the business sorting rule and displayed after the valid menu items in the old menu list that have been broadcast by the electronic device;
[0015] In the above embodiment, in the new menu list, the menu items that have been announced by the electronic device are before the focus menu item, and the menu items after the focus menu item are all menu items that have not been announced by the electronic device. These menu items that have not been announced by the electronic device are sorted according to the business sorting rules. In this way, the electronic device can quickly traverse the new menu list without causing repeated announcements, and can find the menu items that the user expects more quickly, thereby improving the user's experience of using the electronic device.
[0016] In combination with some embodiments of the first aspect, in some embodiments, the method also includes: the electronic device places the ordered unannounced list after the old announced list to obtain the new menu list; the ordered unannounced list refers to the set of all menu items in the old menu list that have not been announced by the electronic device and the newly added menu items after being sorted according to the business sorting rules; the old announced list refers to the set of valid menu items that have been announced by the electronic device.
[0017] In combination with some embodiments of the first aspect, in some embodiments, the electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: when the electronic device determines that the focus menu item in the old menu list is a valid menu item, the electronic device sets the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; when the electronic device determines that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item after the focus menu item in the old menu list, the electronic device sets the first valid menu item after the focus menu item in the old menu list as the focus menu item in the new menu list; when the electronic device determines that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item after the focus menu item in the old menu list, the electronic device sets the first menu item in the new menu list as the focus menu item.
[0018] In the above embodiment, the electronic device sets the focus menu item in the new menu list according to whether there is a valid menu item after the focus menu item in the old menu list. The focus menu item in the new menu list can be set quickly, and in the new menu list, the menu items that have been broadcasted by the electronic device are displayed before the focus menu item. When the electronic device starts broadcasting the new menu list from the focus menu item, the new menu list can be traversed more quickly.
[0019] In combination with some embodiments of the first aspect, in some embodiments, the electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: when the electronic device determines that the focus menu item in the old menu list is a valid menu item, the electronic device sets the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; when the electronic device determines that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item before the focus menu item in the old menu list, the electronic device sets the first valid menu item before the focus menu item in the old menu list as the focus menu item in the new menu list; when the electronic device determines that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item before the focus menu item in the old menu list, the electronic device sets the first menu item in the new menu list as the focus menu item.
[0020] In the above embodiment, the electronic device sets the focus menu item in the new menu list according to whether there is a valid menu item before the focus menu item in the old menu list. The focus menu item in the new menu list can be set quickly, and in the new menu list, the menu items that have been broadcasted by the electronic device are displayed before the focus menu item. When the electronic device starts broadcasting the new menu list from the focus menu item, the new menu list can be traversed more quickly.
[0021] In combination with some embodiments of the first aspect, in some embodiments, when the electronic device determines that the focus menu item in the old menu list is a valid menu item, the electronic device sets the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; when the electronic device determines that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item before the focus menu item in the old menu list, the electronic device sets the first menu item in the new menu list that is not before the focus menu item in the old menu list as the focus menu item; when the electronic device determines that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item before the focus menu item in the old menu list, the electronic device sets the first menu item in the new menu list as the focus menu item.
[0022] In the above embodiment, the electronic device sets the focus menu item in the new menu list according to whether there is a valid menu item before the focus menu item in the old menu list. The focus menu item in the new menu list can be set quickly, and in the new menu list, the menu items that have been broadcasted by the electronic device are displayed before the focus menu item. When the electronic device starts broadcasting the new menu list from the focus menu item, the new menu list can be traversed more quickly.
[0023] In combination with some embodiments of the first aspect, in some embodiments, the electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: when the electronic device determines that the focus menu item in the old menu list is a valid menu item, the electronic device sets the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; when the electronic device determines that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item that has been broadcast by the electronic device before the focus menu item in the old menu list, the electronic device sets the first valid menu item that has been broadcast by the electronic device before the focus menu item in the old menu list as the focus menu item in the new menu list; when the electronic device determines that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item that has been broadcast by the electronic device before the focus menu item in the old menu list, the electronic device sets the first menu item in the new menu list as the focus menu item.
[0024] In the above embodiment, the electronic device sets the focus menu item in the new menu list according to whether there is a valid menu item before the focus menu item in the old menu list. The focus menu item in the new menu list can be set quickly, and in the new menu list, the menu items that have been broadcasted by the electronic device are displayed before the focus menu item. When the electronic device starts broadcasting the new menu list from the focus menu item, the new menu list can be traversed more quickly.
[0025] In combination with some embodiments of the first aspect, in some embodiments, the electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: when the electronic device determines that the focus menu item in the old menu list is a valid menu item, the electronic device sets the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; when the electronic device determines that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item that has been broadcast by the electronic device before the focus menu item in the old menu list, the electronic device sets the first menu item in the new menu list that is not before the focus menu item in the old menu list as the focus menu item; when the electronic device determines that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item that has been broadcast by the electronic device before the focus menu item in the old menu list, the electronic device sets the first menu item in the new menu list as the focus menu item.
[0026] In the above embodiment, the electronic device sets the focus menu item in the new menu list according to whether there is a valid menu item before the focus menu item in the old menu list. The focus menu item in the new menu list can be set quickly, and in the new menu list, the menu items that have been broadcasted by the electronic device are displayed before the focus menu item. When the electronic device starts broadcasting the new menu list from the focus menu item, the new menu list can be traversed more quickly.
[0027] In combination with some embodiments of the first aspect, in some embodiments, the method also includes: when the focus menu item in the new menu item list has not been broadcast by the electronic device before the old menu list is updated, the electronic device automatically broadcasts the focus menu item in the new menu item list once; when the focus menu item in the new menu item list has been broadcast by the electronic device before the old menu list is updated, the electronic device does not automatically broadcast the focus menu item in the new menu item list.
[0028] In the above embodiment, the electronic device will not automatically broadcast the menu items that have been broadcast by the electronic device, thereby reducing unnecessary repeated broadcasts. When the menu list is frequently updated, repeated broadcasts can be avoided. The electronic device will automatically broadcast the menu items that have not been broadcast by the electronic device, thereby preventing the electronic device from missing the broadcast menu items.
[0029] In combination with some embodiments of the first aspect, in some embodiments, the method further includes: the electronic device automatically announces once the focus menu item in the new menu item list.
[0030] In the above embodiment, the electronic device does not need to determine whether the focus menu item has been announced by the electronic device, and is directly set to automatically announce the focus menu item, thereby preventing the electronic device from missing the focus menu item.
[0031] In combination with some embodiments of the first aspect, in some embodiments, the method further includes: the electronic device does not automatically announce the focus menu item in the new menu item list.
[0032] In the above embodiment, the electronic device does not need to determine whether the focus menu item has been announced by the electronic device, and directly sets it not to automatically announce the focus menu item, thereby reducing unnecessary repeated announcements. When the menu list is frequently updated, a large number of repeated announcements can be avoided.
[0033] In a second aspect, an embodiment of the present application provides an electronic device, which includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the first electronic device to execute: display an old menu list; update the old menu list to obtain a new menu list; set the focus menu item in the new menu list according to the focus menu item in the old menu list; display the new menu list; in the new menu list, the newly added menu item is not displayed before the focus menu item in the new menu list; the newly added menu item refers to a menu item that does not exist in the old menu list but exists in the new menu list.
[0034] In the above embodiment, when the menu list is updated, the newly added menu item can be used as the focus menu item or displayed after the focus menu item. The electronic device can quickly traverse these newly added menu items, so that when the user traverses the updated menu list, all menu items can be quickly traversed without unnecessary repeated broadcasts, and the menu item expected by the user can be found, thereby improving the user's experience of using the electronic device.
[0035] In combination with some embodiments of the second aspect, in some embodiments, displaying the new menu list specifically includes: displaying the new menu list; in the new menu list, newly added menu items sorted according to business sorting rules are displayed after the valid menu items; the valid menu items refer to menu items that exist both in the old menu list and in the new menu list.
[0036] In combination with some embodiments of the second aspect, in some embodiments, updating the old menu list to obtain a new menu list includes: placing the ordered new list after the old valid list to obtain the new menu list; the old valid list refers to the set of valid menu items; the ordered new list refers to the set of new menu items sorted according to the business sorting rules.
[0037] In combination with some embodiments of the second aspect, in some embodiments, it is characterized in that: when the focus menu item in the old menu list is an invalid menu item, in the new menu list, all menu items after the focus menu item in the old menu list and the newly added menu items are sorted according to the business sorting rules and are displayed after the valid menu item before the focus menu item in the old menu list; when the focus menu item in the old menu list is a valid menu item, in the new menu list, all menu items after the focus menu item in the old menu list and the newly added menu items are sorted according to the business sorting rules and are displayed after the focus menu item in the old menu list and the valid menu item before the focus menu item in the old menu list.
[0038] In combination with some embodiments of the second aspect, in some embodiments, updating the old menu list to obtain a new menu list includes: updating the old menu list to obtain a new menu list includes: when the focus menu item in the old menu list is an invalid menu item, placing the ordered post-focus list after the old pre-focus list to obtain the new menu list; the ordered post-focus list refers to the set of all menu items after the focus menu item in the old menu list and the newly added menu items are sorted according to the business sorting rules; the old pre-focus list refers to the set of valid menu items before the focus menu item in the old menu list; when the focus menu item in the old menu list is a valid menu item, the electronic device places the ordered post-focus list after the old pre-focus list to obtain the new menu list; the ordered post-focus list refers to the set of all menu items after the focus menu item in the old menu list and the newly added menu items are sorted according to the business sorting rules; the old pre-focus list refers to the focus menu item in the old menu list and the set of valid menu items before the focus menu item in the old menu list.
[0039] In combination with some embodiments of the second aspect, in some embodiments, displaying the new menu list specifically includes: displaying the new menu list; in the new menu list, all menu items in the old menu list that have not been announced and the newly added menu items that are sorted according to business sorting rules are displayed after the valid menu items that have been announced in the old menu list.
[0040] In combination with some embodiments of the second aspect, in some embodiments, the method also includes: placing the ordered new list after the old valid list to obtain the new menu list; the old valid list refers to a set of valid menu items; the ordered new list refers to a set of new menu items sorted according to the business sorting rules.
[0041] In combination with some embodiments of the second aspect, in some embodiments, the method also includes: placing the ordered unannounced list after the old announced list to obtain the new menu list; the ordered unannounced list refers to the set of all menu items in the old menu list that have not been announced by the electronic device and the newly added menu items after being sorted according to the business sorting rules; the old announced list refers to the set of valid menu items that have been announced by the electronic device.
[0042] In combination with some embodiments of the second aspect, in some embodiments, the focus menu item in the new menu list is set according to the focus menu item in the old menu list, specifically including: when it is determined that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; when it is determined that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item after the focus menu item in the old menu list, setting the first valid menu item after the focus menu item in the old menu list as the focus menu item in the new menu list; when it is determined that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item after the focus menu item in the old menu list, setting the first menu item in the new menu list as the focus menu item.
[0043] In combination with some embodiments of the second aspect, in some embodiments, the focus menu item in the new menu list is set according to the focus menu item in the old menu list, specifically including: when it is determined that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; when it is determined that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item before the focus menu item in the old menu list, setting the first valid menu item before the focus menu item in the old menu list as the focus menu item in the new menu list; when it is determined that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item before the focus menu item in the old menu list, the first menu item in the new menu list is the focus menu item.
[0044] In combination with some embodiments of the second aspect, in some embodiments, the focus menu item in the new menu list is set according to the focus menu item in the old menu list, specifically including: when it is determined that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; when it is determined that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item before the focus menu item in the old menu list, setting the first menu item in the new menu list that is not before the focus menu item in the old menu list as the focus menu item; when it is determined that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item before the focus menu item in the old menu list, setting the first menu item in the new menu list as the focus menu item.
[0045] In combination with some embodiments of the second aspect, in some embodiments, the focus menu item in the new menu list is set according to the focus menu item in the old menu list, specifically including: when it is determined that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; when it is determined that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item that has been announced before the focus menu item in the old menu list, setting the first valid menu item that has been announced before the focus menu item in the old menu list as the focus menu item in the new menu list; when it is determined that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item that has been announced before the focus menu item in the old menu list, setting the first menu item in the new menu list as the focus menu item.
[0046] In combination with some embodiments of the second aspect, in some embodiments, the focus menu item in the new menu list is set according to the focus menu item in the old menu list, specifically including: when it is determined that the focus menu item in the old menu list is a valid menu item, the focus menu item in the new menu list is set to be the same as the focus menu item in the old menu list; when it is determined that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item that has been announced before the focus menu item in the old menu list, the first menu item in the new menu list that is not before the focus menu item in the old menu list is set as the focus menu item; when it is determined that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item that has been announced before the focus menu item in the old menu list, the first menu item in the new menu list is set as the focus menu item.
[0047] In combination with some embodiments of the second aspect, in some embodiments, the method also includes: when the focus menu item in the new menu item list has not been announced before the old menu list is updated, automatically announcing the focus menu item in the new menu item list once; when the focus menu item in the new menu item list has been announced before the old menu list is updated, not automatically announcing the focus menu item in the new menu item list.
[0048] In combination with some embodiments of the second aspect, in some embodiments, the method further includes: automatically announcing once the focus menu item in the new menu item list.
[0049] In combination with some embodiments of the second aspect, in some embodiments, the method further includes: not automatically announcing the focus menu item in the new menu item list.
[0050] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a display module for displaying an old menu list; an update module for updating the old menu list to obtain a new menu list; a setting module for setting a focus menu item in the new menu list according to the focus menu item in the old menu list; the display module is also used to display the new menu list; in the new menu list, a newly added menu item is not displayed before the focus menu item in the new menu list; the newly added menu item refers to a menu item that does not exist in the old menu list but exists in the new menu list.
[0051] In the above embodiment, when the menu list is updated, the newly added menu item can be used as the focus menu item or displayed after the focus menu item. The electronic device can quickly traverse these newly added menu items, so that when the user traverses the updated menu list, all menu items can be quickly traversed without unnecessary repeated broadcasts, and the menu item expected by the user can be found, thereby improving the user's experience of using the electronic device.
[0052] In combination with some embodiments of the third aspect, in some embodiments, the display module is also used to display the new menu list, specifically including: the display module displays the new menu list; in the new menu list, the newly added menu items sorted according to the business sorting rules are displayed after the valid menu items; the valid menu items refer to menu items that exist both in the old menu list and in the new menu list.
[0053] In combination with some embodiments of the third aspect, in some embodiments, the display module is also used to display the new menu list, specifically including: the display module displays the new menu list; when the focus menu item in the old menu list is an invalid menu item, in the new menu list, all menu items after the focus menu item in the old menu list and the newly added menu items are sorted according to the business sorting rules and displayed after the valid menu item before the focus menu item in the old menu list; when the focus menu item in the old menu list is a valid menu item, in the new menu list, all menu items after the focus menu item in the old menu list and the newly added menu items are sorted according to the business sorting rules and displayed after the focus menu item in the old menu list and the valid menu item before the focus menu item.
[0054] In combination with some embodiments of the third aspect, in some embodiments, the display module is also used to display the new menu list, specifically including: the display module displays the new menu list; in the new menu list, all menu items in the old menu list that have not been announced and the newly added menu items are sorted according to business sorting rules and displayed after the valid menu items in the old menu list that have been announced by the electronic device.
[0055] In combination with some embodiments of the third aspect, in some embodiments, a setting module is used to set the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: when the setting module determines that the focus menu item in the old menu list is a valid menu item, the setting module sets the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; when the setting module determines that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item after the focus menu item in the old menu list, the first valid menu item after the focus menu item in the old menu list is set as the focus menu item in the new menu list; when the setting module determines that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item after the focus menu item in the old menu list, the first menu item in the new menu list is set as the focus menu item.
[0056] In combination with some embodiments of the third aspect, in some embodiments, a setting module is used to set the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: when the setting module determines that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; when the setting module determines that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item before the focus menu item in the old menu list, setting the first valid menu item before the focus menu item in the old menu list as the focus menu item in the new menu list; when the setting module determines that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu before the focus menu item in the old menu list, the first menu item in the new menu list is the focus menu item.
[0057] In combination with some embodiments of the third aspect, in some embodiments, a setting module is used to set the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: when the setting module determines that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; when the setting module determines that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item before the focus menu item in the old menu list, setting the first menu item in the new menu list that is not before the focus menu item in the old menu list as the focus menu item; when the setting module determines that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item before the focus menu item in the old menu list, setting the first menu item in the new menu list as the focus menu item.
[0058] In combination with some embodiments of the third aspect, in some embodiments, a setting module is used to set the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: when the setting module determines that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; when the setting module determines that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item that has been announced before the focus menu item in the old menu list, setting the first valid menu item that has been announced before the focus menu item in the old menu list as the focus menu item in the new menu list; when the setting module determines that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item that has been announced before the focus menu item in the old menu list, setting the first menu item in the new menu list as the focus menu item.
[0059] In combination with some embodiments of the third aspect, in some embodiments, a setting module is used to set the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: when the setting module determines that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; when the setting module determines that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item that has been announced before the focus menu item in the old menu list, setting the first menu item in the new menu list that is not before the focus menu item in the old menu list as the focus menu item; when the setting module determines that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item that has been announced before the focus menu item in the old menu list, setting the first menu item in the new menu list as the focus menu item.
[0060] In a fourth aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device, and the chip system includes one or more processors, which are used to call computer instructions so that the electronic device executes the method described in the first aspect and any possible implementation method of the first aspect.
[0061] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the method described in the first aspect and any possible implementation of the first aspect.
[0062] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on an electronic device, enable the electronic device to execute the method described in the first aspect and any possible implementation of the first aspect.
[0063] It is understandable that the electronic devices provided in the second and third aspects, the chip system provided in the fourth aspect, the computer program product provided in the fifth aspect, and the computer storage medium provided in the sixth aspect are all used to execute the methods provided in the embodiments of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 It is an exemplary user interface for enabling the screen reading function in the barrier-free function of the electronic device provided in the embodiment of the present application;
[0065] Figure 2 is a schematic diagram of a menu list provided in an embodiment of the present application;
[0066] Figure 3 is a schematic diagram of a menu item in a menu list provided by an embodiment of the present application becoming a focus menu item;
[0067] Figure 4 A set of exemplary user interfaces for an electronic device to announce a menu list in a scheme;
[0068] Figure 5 is an exemplary flow chart of updating a menu list in a scheme;
[0069] Figure 6 is a set of exemplary user interfaces in the menu list updating method provided in the embodiment of the present application;
[0070] Figure 7a-7e A set of exemplary user interfaces when a menu list is updated in a "WLAN" application provided in an embodiment of the present application;
[0071] Figure 8a-8d A set of exemplary user interfaces when updating a menu list in a communication application provided in an embodiment of the present application;
[0072] Fig. 9 It is another exemplary user interface when the menu list is updated in the "WLAN" application provided in the embodiment of the present application;
[0073] Fig.10 is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application;
[0074] Fig.11 is an exemplary flow chart of a menu list updating method provided in an embodiment of the present application;
[0075] Fig.12 It is a set of schematic diagrams of an electronic device according to an embodiment of the present application adopting method 1 to obtain a new menu list;
[0076] Fig.13 This is a flow chart of an electronic device according to an embodiment of the present application taking method 1 to obtain a new menu list;
[0077] Fig.14 This is a flow chart of obtaining a new menu list by adopting method 2 provided in an embodiment of the present application;
[0078] Fig.15 It is a set of schematic diagrams of obtaining a new menu list by adopting method 2 provided in an embodiment of the present application;
[0079] Fig.16 is a flow chart of an electronic device according to an embodiment of the present application adopting method 3 to obtain another new menu list;
[0080] Fig.17 It is a set of schematic diagrams of obtaining a new menu list by adopting method 3 provided in an embodiment of the present application;
[0081] Fig.18 This is a group of schematic diagrams of focus menu items in a new menu list for setting an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0082] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.
[0083] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0084] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device, and finally presented as content that can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0085] Since the embodiments of the present application involve the application of file protection between distributed collaborative devices, for ease of understanding, the relevant terms and concepts involved in the embodiments of the present application are first introduced below.
[0086] (1) Accessibility:
[0087] In the embodiments of the present application, the barrier-free function refers to an interactive function that enables the intention of a visually impaired user to be understood. The barrier-free function can provide electronic devices with functions such as text-to-speech and screen reading.
[0088] When the screen reading function is turned on, the electronic device can broadcast the content selected by the user on the current user interface. For example, when the user selects text displayed in a control on the user interface, the electronic device can broadcast the text.
[0089] In some embodiments, the electronic device can also voice prompt the user how to operate to execute the selected content. For example, when the user selects a button on the user interface, the electronic device can tell the user how to operate the button by broadcasting: "Double-click with one finger to execute the button."
[0090] For example, Figure 1 Exemplary user interfaces 11 and 12 are shown for enabling the screen reading function of an electronic device after entering the barrier-free function. User interfaces 11 and 12 may be provided by a “settings” application.
[0091] like Figure 1 As shown in (a) of FIG. 1 , in response to a user operation (such as a click operation) on the barrier-free function setting item 110 in the user interface 11, the electronic device may display the following Figure 1 The user interface 12 shown in (b) .
[0092] like Figure 1 As shown in (b) in FIG. 1 , the user interface 12 is a setting interface for the barrier-free function. In response to the user's operation (such as a click operation) on the screen reading switch control 120 in the user interface 12, the electronic device can turn on the screen reading. After turning on the screen reading, the electronic device can interact with the user by broadcasting relevant content. For example, at this time, the electronic device can broadcast: "Screen reading has been turned on."
[0093] It is understandable that user interface 11 and user interface 12 are just a set of exemplary user interfaces for electronic devices to broadcast using the screen reading function in the barrier-free function. In some embodiments, the electronic device can also enable the screen reading function by default for broadcasting. In other embodiments, the electronic device can also broadcast by other methods, which are not limited here.
[0094] (2) Menu list:
[0095] In the embodiment of the present application, the menu list includes one or more menu items. The menu items can be displayed in a control.
[0096] Each menu item in the same menu list has the same display format. The same display format means that when the menu items are displayed in the control, if the content is displayed in the same position of different controls, the content is of the same category, such as icons, texts, etc.
[0097] For example, Figure 2 This is a schematic diagram of a menu list in an embodiment of the present application.
[0098] like Figure 2 As shown, a menu list 210 is displayed in the user interface 21. The menu items in the menu list displayed in the user interface 21 may be menu items 211 to 2110.
[0099] It is understandable that the menu items in the menu list 210 include not only the menu items 211 to 2110 that have been displayed in the user interface 21, but also other menu items that are not displayed in the user interface 21. That is, as long as the menu items can be displayed on the user interface, they are all in the menu list.
[0100] Each menu item has the same display format. For example, by comparing menu item 211 with menu item 212, it can be seen that:
[0101] The positions of area 2111 and area 2112 in the control for displaying menu item 211 are the same as the positions of area 2114 and area 2115 in the control for displaying menu item 212. The contents displayed in these two areas are all texts.
[0102] The position of area 2113 in the control for displaying menu item 211 is the same as the position of area 2116 in the control for displaying menu item 212. The contents displayed in these two areas are icons.
[0103] (3) Focus menu item:
[0104] In an embodiment of the present application, a focus menu item refers to a menu item in a menu list that is currently being broadcast by an electronic device or is not currently being broadcast by the electronic device, but will be broadcast by the electronic device once a broadcast condition is triggered. For example, the electronic device sets menu item A as the focus menu item, but does not broadcast the menu item A. In some embodiments, a user's click operation on menu item A can serve as a broadcast condition that triggers menu item A to be broadcast by the electronic device. That is, in response to a user's click operation on menu item A, the electronic device can broadcast menu item A. In some embodiments, a user's sliding operation on menu item A can serve as a broadcast condition that triggers menu item A to be broadcast by the electronic device. In other embodiments, the electronic device can also take other operations as broadcast conditions for menu item A to be broadcast by the electronic device. This is not limited here.
[0105] The electronic device may enable the screen reading function in the barrier-free function to enable the electronic device to broadcast menu items, or may enable the electronic device to broadcast menu items through other methods, which is not limited in the embodiments of the present application.
[0106] For example, Figure 3 A schematic diagram showing a menu item in a menu list becoming a focus menu item in this application example.
[0107] like Figure 3 As shown, menu item 310 is displayed in user interface 31. In response to the user's operation (eg, click operation) on menu item 310, the electronic device may announce the menu item 310: "five encrypted WLAN signal strength is full". At this time, menu item 310 is the focus menu item.
[0108] The focus menu item can be changed. In some embodiments, in response to a user's operation to change the focus menu item (such as a swipe down operation), the electronic device can set the next menu item of the current focus menu item as the focus menu item. In other embodiments, in response to a user's operation to change the focus menu item (such as a swipe up operation), the electronic device can set the previous menu item of the current focus menu item as the focus menu item. It is understandable that there are other ways to change the focus menu item, which are not limited in the embodiments of the present application.
[0109] It is understandable that when the electronic device announces the focus menu item, in addition to announcing the focus menu item, other information may also be announced. For example, information such as how many items the focus menu item is in the menu list may also be announced. This embodiment of the application does not limit this.
[0110] In order to enhance the visually impaired user's experience of using the electronic device, one solution is that the electronic device can enable the user to obtain the information involved in the menu list by broadcasting the menu list.
[0111] like Figure 4 As shown in (a) in FIG. 5 , the user interface 51 may include a menu list 510, and all menu items in the menu list include menu items 511 to 5110. The menu list 510 may be provided by the "WLAN" application. Assume that the user traverses the menu list 510 from the first menu item by sliding the user interface downward, and has obtained information related to the first three menu items, i.e., menu items 511 to 513. When the fourth menu item 514 in the menu list 510 is the focus menu item, the electronic device starts to update the menu list 510.
[0112] At this time, the electronic device executes Figure 5 The process shown can update the menu list 510. The electronic device first executes the WLAN update logic. Then, based on the WLAN update logic, the WLAN data is obtained. Then, the WLAN data is sorted based on the WLAN sorting rule to obtain an updated menu list. For example, the sorting rule can be to sort the unencrypted WLAN data after the encrypted WLAN data, etc. Finally, the updated menu list is displayed in the user interface.
[0113] like Figure 4 As shown in (b) in FIG. 5 , the updated menu list may be a menu list 520 displayed in the user interface 52. Since the focus menu item in the menu list 510 before the update is the fourth menu item 514 in the menu list, the electronic device may continue to set the fourth menu item 514 in the menu list 520 as the focus menu item according to the unchanged position of the focus menu item in the menu list or the unchanged focus menu item. The user may continue to slide the user interface downward to traverse the menu items following the menu item 514.
[0114] It is understandable that in this solution, the focus menu item in the updated menu list 520 is menu item 514. The menu item before menu item 514 may be one that the electronic device has not yet announced, for example, menu item 522, which exists between menu item 511, menu item 512, and menu item 514 that have been announced by the electronic device. The menu item after menu item 514 may be one that the electronic device has already announced, for example, menu item 513.
[0115] Assume that the information the user needs to obtain is the information involved in menu item 522. At this time, the user continues to traverse the menu list by sliding the user interface downward, and the electronic device needs to repeatedly broadcast menu item 511, menu item 512, menu item 513, menu item 514 before menu item 522 can be broadcast.
[0116] In this way, after the menu list is updated, if the user continues to traverse the menu list by sliding the user interface downward, the electronic device will repeat the announcement and cannot quickly traverse the menu list, resulting in a poor user experience of the electronic device.
[0117] By adopting the menu list updating method provided in the embodiment of the present application, after the menu list is updated, a visually impaired user can quickly traverse the menu list and find the desired menu items, thereby improving the user's experience of using the electronic device.
[0118] Using the menu list updating method in the embodiment of the present application, for the above Figure 4 As shown in (a) of FIG. 5 , the menu list 510 in the user interface 51 is assumed to be scrolled downwards to browse the menu list 510. The electronic device has announced the first three menu items. When announcing the fourth menu item 514, the menu list 510 is updated. After the update, the following can be obtained: Figure 6 The user interface 71 shown in (a) in FIG.
[0119] like Figure 6 As shown in (a), the electronic device can set the focus menu item in the menu list 710 in the user interface 71 to remain unchanged, and still be the fourth menu item 514. For the menu list 710, compared with the menu list 510 before the update, the invalid menu items are menu item 515 and menu item 517. The valid menu items are menu item 512-menu item 514, menu item 516, menu item 518-menu item 5110, and the newly added menu items are menu item 711 and menu item 712. The electronic device does not display the invalid menu items in the menu list 710; the menu items 511-menu item 513 in the valid menu items can still be displayed before the focus menu item 514. Menu items 516, menu items 518-menu item 5110 are still displayed after the focus menu item. The newly added menu item 711 and menu item 712 can be displayed behind the focus menu item 514.
[0120] It can be understood that an invalid menu item refers to a menu item that exists in the menu list before the update but does not exist in the menu list after the update; a valid menu item refers to a menu item that exists in both the menu list before the update and the menu list after the update; a new menu item refers to a menu item that does not exist in the menu list before the update but exists in the menu list after the update.
[0121] In response to the user's operation in the user interface 71 (such as sliding down), the electronic device may display the following Figure 6 The user interface 72 shown in (b) in FIG.
[0122] like Figure 6 As shown in (b) in the figure, in the user interface 72, the focus menu item of the menu list 710 is the next menu item 516 of the previous focus menu item 514. The electronic device can announce the menu item 516: "Six encrypted WLAN signal strength is full".
[0123] When the user continues to slide the user interface downward, the focus menu item may become the next menu item of menu item 516, and the electronic device may announce the menu item.
[0124] In this way, the user can continue to slide the user interface downward, and the electronic device can sequentially broadcast the menu items following the menu item 516, without causing unnecessary repeated broadcasts.
[0125] It can be seen that by adopting the menu list updating method in the embodiment of the present application, the electronic device can quickly traverse the menu list 710. In this way, the visually impaired user can quickly find the desired menu item, thereby improving the visually impaired user's experience of using the electronic device.
[0126] When adopting the menu list updating method provided in the embodiment of the present application, when updating an old menu list, different methods can be adopted to obtain different new menu lists:
[0127] Method 1: Compared with the menu list before updating, the electronic device can use the valid menu items in the updated menu list as the front part of the updated menu list, sort the newly added menu items according to the business sorting rule, and then place them after the valid menu items to obtain the updated menu list.
[0128] Method 2:For the menu items before the focus menu item (including the focus menu item) in the menu list before the update among the valid menu items, the electronic device can retain the relative order of these menu items in the menu list before the update, and place these menu items in the front part of the updated menu list; the electronic device can sort the menu items after the focus menu item in the menu list before the update among the valid menu items together with the newly added menu items according to the business sorting rule, and then place them as the back part of the updated menu list. An updated menu list is obtained.
[0129] Method 3: For the menu items among the valid menu items that have been announced by the electronic device, the electronic device can retain the relative order of these menu items in the menu list before the update, and place these menu items at the front of the updated menu list; the electronic device can sort the menu items among the valid menu items that have not been announced by the electronic device together with the newly added menu items according to the business sorting rule, and then place them at the back of the updated menu list. An updated menu list is obtained.
[0130] Reference below Figure 1 The user interface shown in the figure is used to exemplarily describe the menu list updating method provided in the embodiment of the present application in combination with a specific application scenario when the screen reading function in the barrier-free function is activated in the electronic device:
[0131] Application scenario 1: When the electronic device opens the "WLAN" application, a WLAN list may be displayed, and the WLAN list may be used as a menu list in the embodiment of the present application. In the "WLAN" application, when the electronic device detects a new WLAN network, an update of the menu list may be triggered.
[0132] In the following, the electronic device in this application scenario adopts mode 1 to update the menu list and broadcast the menu list in the "WLAN" application as an example to describe the relevant user interface in an exemplary manner:
[0133] Figure 7a-7e A set of exemplary user interfaces when a menu list in a "WLAN" application is updated is shown.
[0134] For the first menu list displayed each time the electronic device opens the "WLAN" application, the electronic device can sort the multiple menu items in the menu list according to the service sorting rule of the "WLAN" application. The service sorting rule can be to place the unencrypted menu items before the encrypted menu items, and the menu items with strong "WLAN" network signals in the unencrypted menu items before the menu items with weak signals, and the menu items with high security if the signal strength is the same are placed before the menu items with low security. The sorting rules for encrypted menu items can refer to the sorting rules for unencrypted menu items, which will not be repeated here.
[0135] It is understandable that, for the multiple menu items provided by the "WLAN" application, the electronic device may also adopt other service sorting rules to sort the multiple menu items to obtain a menu list, which is not limited here.
[0136] When the electronic device sorts the multiple menu items according to the aforementioned service sorting rules of the "WLAN" application, the obtained menu list can refer to Figure 7a A user interface 81 is shown.
[0137] like Figure 7a As shown, the user interface 81 may include a menu list 810, which may be provided by the "WLAN" application. Assuming that at this time, all menu items in the menu list 810 are displayed in the user interface 81, all menu items may include menu items 811-8110.
[0138] In user interface 81, by comparing "WLAN" signal identifier 8110 provided by menu item 811 and "WLAN" signal identifier 8120 provided by menu item 812, it can be seen that because the "WLAN" network provided by menu item 811 is not encrypted, while the "WLAN" network provided by menu item 812 is encrypted, menu item 811 is placed before menu item 812. It can be seen from "WLAN" signal identifier 8150 provided by menu item 815 and "WLAN" signal identifier 8160 provided by menu item 816 that because the "WLAN" network signal provided by menu item 811 is stronger than the "WLAN" network provided by menu item 812, menu item 815 is placed before menu item 816.
[0139] In response to the user's operation in the user interface 81 (such as a click operation or a slide operation), the electronic device may start to traverse the menu list 810. At this time, the electronic device may display the following Figure 7b User interface 82 is shown.
[0140] like Figure 7b As shown, in the user interface 82, the focus menu item in the electronic device setting menu list 810 is the second menu item 812. At this time, the electronic device can broadcast the menu item 812: "two encrypted WLAN signal strength is full."
[0141] By the electronic device announcing the menu item 812, the user can obtain the information related to the menu item 812. Then continue to operate the user interface, in response to the user's operation in the user interface 82 (such as sliding down), the electronic device can continue to traverse the menu list 810. At this time, the electronic device can display the following Figure 7c User interface 83 is shown.
[0142] like Figure 7c As shown, in the user interface 83, the focus menu item of the menu list 810 changes from the second menu item 812 to the third menu item 813. At this time, the electronic device can broadcast the menu item 813: "three encrypted WLAN signal strength is full".
[0143] At this time, the electronic device detects a new WLAN network and can update the menu list 810 .
[0144] like Figure 7d As shown, the updated menu list 820 can be displayed in the user interface 84. All menu items in the menu list 820 are displayed in the user interface 84. Compared with the menu list 810, the invalid menu items in the menu list 820 are menu items 814, 816, 817 and 818. The valid menu items are menu items 811 to 813, 815, 819 and 8110, and the newly added menu items are 821 to 824.
[0145] The method for the electronic device to obtain the menu list 820 may refer to the following description:
[0146] Among them, for valid menu items, the electronic device can use these menu items as the front part of the menu list 820. These menu items are sorted according to the service sorting rules of the "WLAN" application before updating, and the electronic device can retain the relative order of these menu items without re-sorting them. That is, the electronic device can use menu items 811-813, menu item 815, menu item 819, menu item 8110, and the newly added menu items 821-824 as the front part of the menu list 820.
[0147] For the newly added menu items 821 to 824, the electronic device can sort these menu items according to the service sorting rule of the "WLAN" application and place them as the latter part of the menu list. That is, the electronic device can place these menu items after the valid menu items to obtain the menu list 820.
[0148] Since the focus menu item in menu list 810, namely menu item 813, still exists in menu list 820, the electronic device can set the focus menu item unchanged. In menu list 820, the focus menu item is still menu item 813.
[0149] In the embodiment of the present application, the focus menu item in the updated menu list 820 and the focus menu item in the menu list 810 before the update are both menu item 813. In order to prevent the focus menu item from being repeatedly broadcasted due to frequent updates of the menu list, the electronic device may not automatically broadcast the menu item 813.
[0150] In some embodiments, although the menu item 813 has been announced by the electronic device, in order to prompt the user that the current menu list has been updated, the electronic device can automatically announce the focus menu item once: "three encrypted WLAN signal strength is full."
[0151] The update of the menu list will not affect the user's rapid traversal of the menu list, and the user can continue to operate the user interface to obtain information related to the next menu item of the current focus menu item. In response to the user's operation in the user interface 84 (such as a sliding operation), the electronic device can start to traverse the menu list 820. At this time, the electronic device can display the following information: Figure 7e User interface 85 is shown.
[0152] like Figure 7e As shown, in the user interface 85, the focus menu item of the menu list 810 changes from the third menu item 813 to the fourth menu item 815. At this time, the electronic device can broadcast the menu item 815: "five encrypted WLAN signal strength is full".
[0153] After obtaining the information related to menu item 815, the user can continue to operate the user interface to obtain the information related to the next menu item until the information related to the menu item that the user needs is obtained.
[0154] In this way, there will be no untraversed menu items among the traversed menu items. When the user obtains information related to the untraversed menu items, he will no longer have to go through the process of repeatedly traversing the same menu items. The menu list can be traversed quickly, improving the user's experience of using the electronic device.
[0155] Application scenario 2: When an electronic device opens a communication application, a message list can be displayed, and the message list can be used as a menu list in an embodiment of the present application. In the communication application, when the electronic device receives a new message, the update of the menu list can be triggered. The electronic device can use the menu list update method provided in the embodiment of the present application to broadcast the menu list.
[0156] In the following, the electronic device updates the menu list in mode 2 in the application scenario and broadcasts the menu list in a communication application as an example to describe the relevant user interface in an exemplary manner:
[0157] Figure 8a-8d A set of exemplary user interfaces when a menu list in a communication application is updated is shown.
[0158] For the first menu list displayed each time the electronic device opens a communication application, the electronic device may sort the multiple menu items in the menu list according to the service sorting rule of the communication application. The service sorting rule may be sorting according to the timestamps corresponding to the multiple menu items. The later the timestamp, the earlier the menu item in the menu list. The timestamp of a menu item refers to the time when the electronic device obtains the menu item.
[0159] It is understandable that, for the multiple menu items provided by the communication application, in addition to sorting them according to the timestamp, the electronic device can also use different business sorting rules to sort the multiple menu items to obtain a menu list, which is not limited here.
[0160] When the electronic device sorts multiple menu items according to the business sorting rule that the later the time stamp of the menu item is, the earlier the menu item is in the menu list, the obtained menu list can refer to Figure 8a A user interface 91 is shown.
[0161] like Figure 8a As shown, the user interface 91 may include a menu list 910. The menu list 910 may be provided by a communication application. All menu items in the menu list 910 are displayed in the user interface 91, including menu items 911 to 916.
[0162] In user interface 91, timestamp 9110 corresponding to menu item 911 is "08:20 AM", which means that the electronic device obtains the menu item at 08:20 AM. Timestamp 9120 corresponding to menu item 912 is "08:17 AM", and since timestamp 9110 is later than timestamp 9120, the electronic device places menu item 911 before menu item 912.
[0163] In response to the user's operation on the second menu item 912 on the user interface 91 (eg, a click operation or a slide operation), the electronic device may start to traverse the menu list 910. At this time, the electronic device may display the following information: Figure 8b User interface 92 is shown.
[0164] like Figure 8b As shown, in the user interface 92, the focus menu item in the electronic device setting menu list 910 is the second menu item 912. At this time, the electronic device can start to broadcast the menu item 912: "ma morning 08:17 picture".
[0165] At this time, the electronic device receives a new message and can update the menu list 910 .
[0166] like Figure 8cAs shown, after menu list 910 is updated, menu list 920 displayed in user interface 93 can be obtained. Compared with menu list 910, menu list 920 has a new menu item 921. Valid menu items include menu item 911 to menu item 916. Among them, menu item 911 to menu item 915 have been displayed in user interface 93. Menu item 916 is not displayed in user interface 93, but can be displayed in user interface 93.
[0167] The method for the electronic device to obtain the menu list 920 may refer to the following description:
[0168] For the menu items before (including the focus menu item) the focus menu item in the menu list 910 among the valid menu items, the electronic device may retain the relative order of these menu items as the front part in the menu list 920. That is, the electronic device may place the menu items 911 and 912 at the front part of the menu list 920, and the relative order of the menu items 911 and 912 in the menu list 920 is the same as the relative order in the menu list 910.
[0169] For valid menu items, the electronic device can sort the menu items that are after the focus menu item in menu list 910, and the electronic device can sort these menu items together with the newly added menu items in menu list 920 according to the business sorting rule of the communication application. That is, the electronic device can sort menu items 913-916 and menu item 921 according to the business sorting rule that the later the timestamp of the menu item is, the earlier the menu item is in the menu list. These menu items are sorted as the latter part of menu list 920. That is, the electronic device can place the sorted menu items 913-916 and menu item 921 after menu items 911 and 912 to obtain menu list 920.
[0170] Since the focus menu item in menu list 910 , that is, menu item 912 , still exists in menu list 920 , the electronic device may set the focus menu item unchanged and set the focus menu item in menu list 920 to menu item 912 .
[0171] In response to the user's operation in the user interface 93 (eg, a sliding operation), the electronic device may start to traverse the menu list 920. At this time, the electronic device may display the following Figure 8d User interface 94 is shown.
[0172] like Figure 8d As shown, in the user interface 94, the focus menu item of the menu list changes from the second menu item 912 to the third menu item 921. At this time, the electronic device can broadcast the menu item 921: "bai an unread message at 08:30 am file"
[0173] It is understandable that the user can continue to operate the user interface 85 to quickly traverse the menu list 920. If there are updates, the newly added menu items will always be quickly traversed by the user.
[0174] Application scenario 3: For the menu list 810 provided by the aforementioned "WLAN" application, when the electronic device announces menu item 812 without announcing menu item 811 and then announces menu item 813, the electronic device detects a new WLAN network and can update the menu list 810. The electronic device can use the menu list update method provided in the embodiment of the present application to announce the menu list.
[0175] In the following, the electronic device in this application scenario adopts mode 3 to update the menu list and broadcasts the menu list in the "WLAN" application as an example to describe the relevant user interface in an exemplary manner:
[0176] like Fig. 9 As shown, the updated menu list 830 can be displayed in the user interface 86, and all menu items in the menu list 830 are displayed in the user interface 91. Compared with the menu list 810, the invalid menu items in the menu list 830 are menu items 813, 814, 816, 817, and 818. The valid menu items are menu items 811, 812, 815, 819, and 8110, and the newly added menu items are 831-835.
[0177] The method for the electronic device to obtain the menu list 830 may refer to the following description:
[0178] For the menu items in the valid menu items that have been announced by the electronic device, the electronic device can retain the relative order of these menu items in the menu list 810 before the update as the front part in the menu list 830. That is, the electronic device can place the menu item 812 in the front part of the menu list 830.
[0179] For valid menu items, the electronic device can sort the menu items that have not been broadcast by the electronic device and the newly added menu items in the menu list 830 according to the business sorting rule of the communication application. That is, the electronic device can sort the menu items 811, 812, 815, 819, 8110, and the newly added menu items 831-835 according to the business sorting rule that the later the timestamp of the menu item is, the earlier the menu item is in the menu list. These menu items are sorted as the latter part of the menu list 830. That is, the electronic device can place the sorted menu items 811, 812, 815, 819, 8110, and the newly added menu items 831-835 after the menu item 812 to obtain the menu list 830.
[0180] Since the focus menu item in menu list 810, i.e. menu item 813, does not exist in menu list 830, and there is a valid menu item 812 that has been announced by the electronic device before the focus menu item in the old menu list, the electronic device can set the first menu item in the new menu list 830 that is not before the focus menu item 813 in the old menu list, i.e. menu item 811, as the focus menu item.
[0181] Since the menu item 811 has not been announced by the electronic device, the electronic device may automatically announce the focus menu item once: "one has been connected to WLAN with a signal strength of 2 bars".
[0182] It is understandable that the user can continue to operate the user interface 86 to quickly traverse the menu list 830 .
[0183] The following first introduces an exemplary electronic device 100 provided in an embodiment of the present application.
[0184] Fig.10 It is a schematic diagram of the structure of the electronic device 100 provided in an embodiment of the present application.
[0185] The embodiment is described in detail below by taking the electronic device 100 as an example. It should be understood that the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.
[0186] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194 and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0187] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0188] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0189] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0190] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0191] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0192] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0193] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0194] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0195] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0196] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0197] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0198] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0199] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0200] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0201] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0202] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0203] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0204] In the embodiment of the present application, the electronic device can broadcast the menu list through the speaker 170A.
[0205] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0206] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0207] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0208] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0209] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0210] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, applications required for at least one function (such as face recognition function, fingerprint recognition function, mobile payment function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as face information template data, fingerprint information template, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0211] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0212] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0213] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0214] In the embodiment of the present application, the processor 110 can call the computer instructions stored in the internal memory 121 to enable the electronic device 100 to execute the menu list updating method in the embodiment of the present application.
[0215] The menu list updating method in the embodiment of the present application is described in detail below in conjunction with the hardware structure diagram of the exemplary electronic device 100 described above:
[0216] Fig.11 This is an exemplary flowchart of the menu list updating method in the embodiment of the present application:
[0217] S101, the electronic device determines a focus menu item in an old menu list;
[0218] The old menu list refers to the menu list before the update.
[0219] The electronic device can determine that the last menu item announced before the old menu list is updated is the focus menu item.
[0220] For example, the old menu list could be Figure 7c A menu list 810 is shown, and the electronic device may determine that a focus menu item in the menu list 810 is 813 .
[0221] S102, the electronic device executes the service update logic and obtains a logic list;
[0222] Logical list, which refers to the collection of all menu items to be displayed;
[0223] The service update logic means that when the update condition of the menu list in the application is triggered, the electronic device updates the menu list in the application. It is understandable that the update conditions for updating the menu list of different applications may be different.
[0224] For example, for the “WLAN” application involved in scenario 1, the service update logic of the “WLAN” application may be to trigger an update of a menu list when the electronic device detects a new WLAN network.
[0225] For the communication application involved in scenario 2, the service update logic of the communication application may be such that an update of a menu list may be triggered when the electronic device receives a new message.
[0226] S103, the electronic device obtains an invalid list and a newly added list according to the old menu list and the logic list;
[0227] The invalid list is a collection of invalid menu items.
[0228] The new list is a collection of new menu items.
[0229] The electronic device obtains all menu items that exist in the old menu list but not in the logic list according to the old menu list and the logic list to obtain an invalid list. It can also obtain all new menu items that do not exist in the old menu list but exist in the logic list to obtain a new list.
[0230] Specifically, the electronic device can match each menu item in the old menu list with the menu items in the logic list, and if a menu item does not match any menu item in the logic list, the electronic device can determine that the menu item is an invalid menu item. In this way, the electronic device can obtain the invalid list.
[0231] The electronic device may match each menu item in the logic list with a menu item in the old menu list, and if a menu item does not match any menu item in the old menu list, the electronic device may determine that the menu item is a newly added menu item. In this way, the electronic device may obtain a newly added list.
[0232] in, Fig.12 (a) in FIG. 1 shows a schematic diagram of an old menu list A of a certain application, and the menu items in the old menu list A may include data1, data2, data3, and data4. Fig.12 (b) in the figure shows a schematic diagram of a logic list A obtained when the electronic device executes the service update logic to update the old menu list A. The menu items in the logic list A may include data1, data2, data3, data5, data6, data7, and data8.
[0233] Fig.12(c) in FIG. 1 shows a schematic diagram of the invalid list A, which is obtained by comparing the old menu list A with the logic list A by the electronic device. Data4 exists in the old menu list A but does not exist in the logic list A, so data4 is an invalid menu item in the invalid list A.
[0234] Fig.12 (d) in FIG. 1 shows a schematic diagram of a newly added list A. The electronic device can compare the old menu list A with the logic list A to obtain that the menu items in the newly added list A are data5, data6, data7, and data8.
[0235] S104, the electronic device obtains a new menu list according to the old menu list, the invalid list and the newly added list;
[0236] The new menu list refers to the updated menu list.
[0237] For an old menu list, an invalid list and a newly added list, in different scenarios, the electronic device can adopt different methods to obtain different new menu lists. The following describes in detail the different methods of the electronic device to obtain the new menu list:
[0238] Method 1: Fig.13 In some embodiments, the electronic device adopts method 1 to obtain a flow chart of a new menu list.
[0239] The process is as Fig.13 As shown, including steps S201 to S203, the following is combined Fig.12 The electronic device shown adopts a set of schematic diagrams to obtain a new menu list in mode 1, and steps S201 to S203 are described in detail:
[0240] S201, the electronic device obtains an old valid list according to the old menu list and the invalid list;
[0241] The old valid list is the set of valid menu items.
[0242] The electronic device can remove all invalid menu items in the old menu list to obtain an old valid list. Specifically, the electronic device can match each invalid menu item in the invalid list with all menu items in the old menu list. If they are the same, the invalid menu item can be removed from the old menu list to obtain an old valid list.
[0243] like Fig.12(e) shows a schematic diagram of the old valid list A. The electronic device can remove the invalid menu item in the invalid list A, that is, data4, from the old menu list A to obtain the old valid list A. The menu items in the old valid list A can include data1, data2, and data3.
[0244] It can be understood that the relative order between the menu items in the old valid list is the same as the relative order between the menu items in the old menu list.
[0245] S202, the electronic device sorts the new addition list according to the service sorting rule to obtain an ordered new addition list;
[0246] The ordered new list refers to a collection of new menu items sorted according to business sorting rules.
[0247] The service sorting rule refers to the rule by which the electronic device sorts multiple menu items of an application. The service sorting rules of different applications may be different.
[0248] For example, for the "WLAN" application involved in scenario 1, the service sorting rules of the "WLAN" application can be to place the unencrypted menu items before the encrypted menu items, and among the unencrypted menu items, the menu items with strong "WLAN" network signals are placed before the menu items with weak signals, and the menu items with high security if the signal strength is the same are placed before the menu items with low security. The sorting rules for encrypted menu items can refer to the sorting rules for unencrypted menu items, and will not be repeated here.
[0249] For the communication application involved in scenario 3, the service sorting rule of the communication application may be to sort according to the timestamps corresponding to the multiple menu items, and the later the timestamp, the earlier the menu item is in the menu list.
[0250] For the newly added lists of different applications, the electronic device may sort the newly added lists according to the service sorting rules of the application to obtain an ordered newly added list.
[0251] like Fig.12 (f) in the figure shows a schematic diagram of an ordered newly added list A. The electronic device can sort the newly added list A according to the service sorting rule to obtain the ordered newly added list A. The menu items in the newly added list A are data5, data6, data7, and data8 in sequence. The order of the menu items in the ordered newly added list A has changed to data6, data5, data7, and data8 in sequence.
[0252] S203: The electronic device obtains a new menu list according to the ordered newly added list and the old valid list.
[0253] The electronic device may place the ordered newly added list after the old valid list to obtain a new menu list.
[0254] like Fig.12 (g) in FIG. 1 shows a schematic diagram of a new menu list A. The electronic device may place the ordered newly added list A after the old valid list A to obtain the new menu list A.
[0255] For example, in the above scenario 1, the menu list 820 is obtained by using method 1.
[0256] Method 2: Fig.14 In some embodiments, the electronic device adopts method 2 to obtain a new menu list.
[0257] The process is as Fig.14 As shown, including steps S301 to S303, the following is combined Fig.15 The electronic device shown adopts a set of schematic diagrams to obtain a new menu list in mode 2, and steps S301 to S303 are described in detail:
[0258] S301, the electronic device obtains an old list before focus and an old list after focus according to the old menu list and the invalid list;
[0259] The old list before focus refers to a set of valid menu items before (including the focus menu item) the focus menu item in the old menu list.
[0260] The post-focus old list refers to a collection of valid menu items after the focus menu item in the old menu list.
[0261] For all menu items before (including) the focus menu item in the old menu list, the electronic device can remove invalid menu items from these menu items to obtain the old list before the focus.
[0262] Specifically, the electronic device can obtain all menu items before the focus menu item (including the focus menu item) from the old menu list, and then traverse these menu items. Each time a menu item is traversed, the menu item is matched with a menu item in the invalid list. If the menu item is the same as a menu item in the invalid list, the electronic device can determine that the menu item is an invalid menu item, and then remove the menu item. This process continues until all menu items are traversed and all invalid menu items are removed, thereby obtaining the old list before the focus.
[0263] It is understandable that when there is no focus menu item in the old menu list, the electronic device can remove the invalid menu items in the old menu list to obtain the old list before the focus.
[0264] like Fig.15(c) in the figure shows a schematic diagram of the old list B before the focus. The old list B before the focus is the electronic device according to Fig.15 The old menu list A shown in (a) is different from Fig.15 The failure list A shown in (b) is obtained.
[0265] The focus menu item in the old menu list A is data2, and data1 is the menu item before the focus menu item. The invalid menu item in the invalid list A is data4. The electronic device can determine that data1 and data2 are the menu items in the old list before the focus.
[0266] The electronic device can first obtain all menu items after the focus menu item from the old menu list, and then remove the invalid menu items from these menu items to obtain the old list after the focus. This process can refer to the description of the electronic device obtaining the old list before the focus in the above step S301, which will not be repeated here.
[0267] like Fig.15 (d) in FIG. 1 shows a schematic diagram of the old list B after focus. The old list B after focus is a list of the electronic device according to Fig.15 The old menu list A shown in (a) is different from Fig.15 The failure list A shown in (b) is obtained.
[0268] The focus menu item in the old menu list A is data2, so the electronic device obtains the menu items after the focus menu item, that is, data3 and data4. Since the invalid menu item in the invalid list A is data4, the electronic device removes data4 and determines that data3 is the menu item in the old list B before the focus.
[0269] S302, the electronic device obtains an ordered post-focus list by using the old post-focus list and the newly added list according to the service sorting rule;
[0270] The electronic device can sort all the menu items in the old post-focus list and the newly added list according to the business sorting rule to obtain an ordered post-focus list. The ordered post-focus list is a collection of all the sorted menu items.
[0271] Fig.15 (f) in FIG. 1 shows a schematic diagram of an ordered post-focus list B. The electronic device can compare the post-focus old list B with the Fig.15 The menu items in the newly added list A shown in (e) are sorted together according to the business sorting rule to obtain the ordered focus list B.
[0272] S303: The electronic device obtains a new menu list according to the ordered post-focus list and the old pre-focus list.
[0273] The electronic device may place the ordered post-focus list after the old pre-focus list to obtain a new menu list.
[0274] like Fig.15 (g) in FIG. 1 shows a schematic diagram of a new menu list B. The electronic device may place the ordered post-focus list B behind the old pre-focus list B to obtain the new menu list B.
[0275] For example, the above scenario 2 adopts the method 2 to obtain the menu list 920.
[0276] Method 3: Fig.16 In some other embodiments, the electronic device adopts method 3 to obtain another new menu list.
[0277] The process is as Fig.16 As shown, including steps S401 to S403, the following is combined Fig.17 The electronic device shown adopts method 3 to obtain a new menu list, and specifically describes steps S401 to S403:
[0278] S401, the electronic device obtains an old list of broadcasts and an old list of non-broadcasts according to the old menu list and the invalid list;
[0279] The announced old list refers to a collection of valid menu items that have been announced.
[0280] The unannounced old list refers to a collection of valid menu items that have not been announced.
[0281] The announced old list refers to a collection of valid menu items that have been announced by the electronic device.
[0282] For all menu items in the old menu list, the electronic device can remove invalid menu items from these menu items, and then determine the menu items that have been announced among the remaining menu items to obtain the announced old list.
[0283] Specifically, for an old menu list, the electronic device can set a broadcast identifier for each menu item therein, and the broadcast identifier is used to distinguish whether the menu item has been broadcast by the electronic device. For example, "0" or "1" can be used as the broadcast identifier of a menu item. If the menu item has been broadcast, the electronic device can set the broadcast identifier of the menu item to "0", otherwise, it can be set to "1".
[0284] The electronic device may first remove the invalid menu items from the old menu list. The process may refer to the description of removing the invalid menu items from the old menu list in the aforementioned step S301, which will not be described in detail here. Then, for all menu items in the old menu list after removing the invalid menu items, the electronic device may determine the set of menu items that have been announced among these menu items through the announcement identifiers of these menu items to obtain the announced old list. And determine the set of menu items that have not been announced among these menu items to obtain the unannounced old list.
[0285] Fig.17 (c) in the figure shows a schematic diagram of the broadcasted old list C. The broadcasted old list C is a list of the electronic device according to Fig.17 The old menu list A shown in (a) is different from Fig.17 Assume that the menu items that have been announced in the old menu list A are data2 and data3. Since the invalid data in the invalid list A is data4, the electronic device can determine that the menu items in the old list C that have been announced are data2 and data3.
[0286] For all menu items in the old menu list, the electronic device can remove the invalid menu items from these menu items, and then determine the menu items that have not been broadcasted in the remaining menu items to obtain the unbroadcasted old list. This process can refer to the description of the electronic device obtaining the broadcasted old list in the above step S401, which will not be repeated here.
[0287] Fig.17 (d) in the figure shows a schematic diagram of the unbroadcasted old list C. The unbroadcasted old list C is a list of the electronic device according to Fig.17 The old menu list A shown in (a) is different from Fig.15 Assume that the menu items that have not been announced in the old menu list A are data1 and data4. Since the invalid data in the invalid list A is data4, the electronic device can determine that the menu item in the old list C that has not been announced is data1.
[0288] S402, the electronic device obtains an ordered unbroadcast list by using the unbroadcast old list and the newly added list according to the service sorting rule;
[0289] The electronic device can sort all the menu items in the old unannounced list and the newly added list according to the service sorting rule to obtain an ordered unannounced list. The ordered unannounced list is a collection of all the sorted menu items.
[0290] Fig.17 (f) in FIG. 1 shows a schematic diagram of an ordered unbroadcast list C. The electronic device can store the unbroadcast old list C and Fig.17The menu items in the newly added list A shown in (e) are sorted together according to the service sorting rule to obtain an ordered unannounced list C.
[0291] S403: The electronic device obtains a new menu list according to the ordered unannounced list and the old announced list.
[0292] The electronic device can place the ordered unannounced list after the announced old list to obtain a new menu list.
[0293] Fig.17 (g) in FIG. 1 shows a schematic diagram of a new menu list C. The electronic device can place the ordered unannounced list C after the announced old list C to obtain the new menu list C. That is, the new menu list C is composed of
[0294] For example, the above scenario 3 adopts the method 3 to obtain the menu list 830.
[0295] S105, the electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list;
[0296] Fig.18 A group of schematic diagrams showing a focus menu item in a new menu list of electronic device settings.
[0297] In one case, if the electronic device determines that the focus menu item in the old menu list is a valid menu item, the electronic device may set the focus menu item in the new menu list to be the same as the focus menu item in the old menu list.
[0298] like Fig.18 As shown in (a), it is assumed that data3 in the old menu list is the focus menu item. The focus menu item is not an invalid menu item, that is, the focus menu item still exists in the new menu list. Then the electronic device can set the focus menu item in the new menu list to be the same as the focus menu item in the old menu list, that is, data3.
[0299] In another case, if the electronic device determines that the focus menu item in the old menu list is an invalid menu item, the electronic device may set the focus menu item in the new menu list in different ways according to different ways of obtaining the new menu list:
[0300] In some embodiments, if the electronic device adopts the aforementioned method 1 to determine the new menu list, there are two different setting methods to set the focus menu item in the new menu list:
[0301] Setting method 1: The electronic device may set the focus menu item in the new menu list according to whether there is a valid menu item before the focus menu item in the old menu list.
[0302] Specifically, if there is a valid menu item before the focus menu item in the old menu list, the electronic device may set the first valid menu item before the focus menu item in the old menu list as the focus menu item in the new menu list.
[0303] like Fig.18 As shown in (b), it is assumed that data4 in the old menu list is the focus menu item. The focus menu item is an invalid menu item, that is, the focus menu item does not exist in the new menu list. The first valid menu item before the focus menu item in the old menu list is data2, and the electronic device can set data2 as the focus menu item in the new menu list.
[0304] If there is no valid menu item before the focus menu item in the old menu list, the electronic device may set the first menu item in the new menu list as the focus menu item.
[0305] like Fig.18 As shown in (c) in FIG. 1 , assuming that data3 in the old menu list is the focus menu item, the focus menu item is an invalid menu item, and all menu items before the focus menu item, i.e., data1 and data2, are all invalid menu items, then the electronic device can set the first menu item in the new menu list, i.e., data4, as the focus menu item.
[0306] Setting method 2: The electronic device may set the focus menu item in the new menu list according to whether there is a valid menu item after the focus menu item in the old menu list.
[0307] Specifically, if there is a valid menu item after the focus menu item in the old menu list, the electronic device may set the first valid menu item after the focus menu item in the old menu list as the focus menu item in the new menu list.
[0308] like Fig.18 As shown in (d) in FIG. 1 , it is assumed that data4 in the old menu list is the focus menu item. The focus menu item is an invalid menu item. The first valid menu item after the focus menu item in the old menu list is data5, and the electronic device can set data5 as the focus menu item in the new menu list.
[0309] If there is no valid menu item after the focus menu item in the old menu list, the electronic device may set the first menu item in the new menu list as the focus menu item.
[0310] like Fig.18As shown in (e) in FIG. 1 , assuming that data3 in the old menu list is the focus menu item. The focus menu item is an invalid menu item. And all menu items after the focus menu item, that is, data4 and data5, are all invalid menu items, then the electronic device can set the first menu item in the new menu list, that is, data1, as the focus menu item.
[0311] In some embodiments, if the electronic device adopts the aforementioned method 2 to determine the new menu list, there are two different setting methods to set the focus menu item in the new menu list:
[0312] The electronic device may set the focus menu item in the new menu list according to whether there is a valid menu item before the focus menu item in the old menu list.
[0313] Setting method 1: If there is a valid menu item before the focus menu item in the old menu list, the electronic device may set the first valid menu item before the focus menu item in the old menu list as the focus menu item in the new menu list.
[0314] like Fig.18 As shown in (f) in FIG. 1 , it is assumed that data4 in the old menu list is the focus menu item, and the focus menu item is an invalid menu item. It is assumed that among the menu items data1, data2, and data3 before the focus menu item, data2 is an invalid menu item. Both data1 and data3 are valid menu items. Then the electronic device can set the first valid menu item before the focus menu item in the old menu list, that is, data3, as the focus menu item in the new menu list.
[0315] If there is no valid menu item before the focus menu item in the old menu list, the electronic device can set the first menu item in the new menu list as the focus menu item.
[0316] like Fig.18 As shown in (h) in FIG. 1 , assuming that data3 in the old menu list is the focus menu item, the focus menu item is an invalid menu item, and all menu items before the focus menu item, namely data1 and data2, are all invalid menu items, then the electronic device can set the first menu item in the new menu list, namely data5, as the focus menu item.
[0317] Setting method 2: If there is a valid menu item before the focus menu item in the old menu list, the electronic device can also set the first menu item in the new menu list that is not before the focus menu item in the old menu list as the focus menu item.
[0318] like Fig.18As shown in (g), assuming that data4 in the old menu list is the focus menu item, the focus menu item is an invalid menu item. Assuming that among the menu items data1, data2, and data3 before the focus menu item, data2 is an invalid menu item. Both data1 and data3 are valid menu items. Then the electronic device can set the first menu item in the new menu list that is not before the focus menu item in the old menu list, that is, data7, as the focus menu item in the new menu list.
[0319] If there is no valid menu item before the focus menu item in the old menu list, the electronic device can set the first menu item in the new menu list as the focus menu item. Fig.18 The description of (h) in FIG. 1 is not repeated here.
[0320] In some embodiments, if the electronic device adopts the aforementioned method 3 to determine the new menu list, there are two different setting methods to set the focus menu item in the new menu list:
[0321] The electronic device may set the focus menu item in the new menu list according to whether the focus menu item in the old menu list has been a valid menu item that has been announced by the electronic device before.
[0322] Setting method 1: If there is a valid menu item that has been broadcasted by the electronic device before the focus menu item in the old menu list, the electronic device can set the first valid menu item that has been broadcasted by the electronic device before the focus menu item in the old menu list as the focus menu item in the new menu list.
[0323] like Fig.18 As shown in (i), suppose data4 in the old menu list is the focus menu item, and the focus menu item is an invalid menu item. Suppose that among the menu items data1, data2, and data3 before the focus menu item, data2 is an invalid menu item. Both data1 and data3 are valid menu items that have been broadcast by the electronic device. Then the electronic device can set the first valid menu item that has been broadcast by the electronic device before the focus menu item in the old menu list, that is, data3, as the focus menu item in the new menu list.
[0324] If the focus menu item in the old menu list has no valid menu item that has been announced by the electronic device before, the electronic device may set the first menu item in the new menu list as the focus menu item.
[0325] like Fig.18As shown in (k), assuming that data3 in the old menu list is the focus menu item, the focus menu item is an invalid menu item. The menu item data1 before the focus menu item is an invalid menu item, and data2 is a valid menu item, but data2 has not been broadcast by the electronic device, that is, the electronic device has no valid menu item that has been broadcast by the electronic device before. Then the electronic device can set the first menu item in the new menu list, that is, data4, as the focus menu item.
[0326] Setting method 2: If there is a valid menu item that has been broadcasted by the electronic device before the focus menu item in the old menu list, the electronic device can also set the first menu item before the focus menu item in the new menu list that is not in the old menu list as the focus menu item.
[0327] like Fig.18 As shown in (j), suppose data4 in the old menu list is the focus menu item, and the focus menu item is an invalid menu item. Suppose that among the menu items data1, data2, and data3 before the focus menu item, data2 is an invalid menu item. Both data1 and data3 are valid menu items that have been broadcasted by the electronic device. Then the electronic device can set the first menu item in the new menu list that is not before the focus menu item in the old menu list, that is, data7, as the focus menu item in the new menu list.
[0328] If the focus menu item in the old menu list has not been a valid menu item that has been broadcast by the electronic device before, the electronic device can set the first menu item in the new menu list as the focus menu item. Fig.18 The description of (k) in FIG. 1 is not repeated here.
[0329] In some embodiments, for a focus menu item in the new menu item list, if the focus menu item has not been announced by the electronic device before the old menu list is updated, the electronic device will automatically announce the focus menu item once. If the focus menu item has been announced by the electronic device before the old menu list is updated, the electronic device will not automatically announce the focus menu item.
[0330] Specifically, for an old menu list, the electronic device can set a broadcast flag for each menu item therein, and the broadcast flag is used to distinguish whether the menu item has been broadcast by the electronic device. For example, "0" or "1" can be used as the broadcast flag of a menu item. If the menu item has been broadcast, the electronic device can set the broadcast flag of the menu item to "0", otherwise, it is set to "1". For a new menu list, the electronic device can set the broadcast flags of the newly added menu items therein to "1".
[0331] Therefore, the electronic device can determine whether the focus menu item has been broadcast by the electronic device through the broadcast mark of the focus menu item. If it has not been broadcast by the electronic device, the electronic device will automatically broadcast the focus menu item once. If it has been broadcast by the electronic device, the electronic device will not automatically broadcast the focus menu item.
[0332] In some embodiments, when the electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list, it can also use the index value of the menu item to uniquely identify a menu item, and determine the index value of the focus menu item in the new menu list by using the index value of the focus menu item in the old menu list, and then set the menu item corresponding to the index value in the new menu list as the focus menu item.
[0333] In some embodiments, regardless of whether the focus menu item in the new menu list has been announced by the electronic device before the old menu list is updated, the electronic device may not automatically announce the focus menu item in the new menu list.
[0334] In other embodiments, no matter whether the focus menu item in the new menu list has been announced by the electronic device before the old menu list is updated, the electronic device can automatically announce the focus menu item in the new menu item list once.
[0335] S106: The electronic device displays the new menu list in the user interface. In the new menu list, the newly added menu item is displayed after the focus menu item.
[0336] It is understandable that the electronic device can obtain a new menu list in the above three ways. Then the new menu list is displayed in the user interface. In the new menu items obtained in each way, the newly added menu items are displayed after the focus menu item in the new menu list.
[0337] For example, the new menu list obtained by method 1 can be Figure 7d The menu list 820 in the user interface 84 is shown. The focus menu item in the menu list 820 is the menu item 813. Compared with the menu list 810 before the update, the newly added menu items in the menu list 820 include menu items 821 to 824, and these newly added menu items are all displayed after the focus menu item 813.
[0338] The new menu list obtained by method 2 can be Figure 8c The menu list 920 in the user interface 93 is shown. The focus menu item in the menu list 920 is the menu item 912. Compared with the menu list 910 before the update, the menu list 820 has a menu item 921, which is displayed after the focus menu item 912.
[0339] The new menu list obtained by adopting method 3 can be Fig. 9 830 in the user interface 86 shown in . The focus menu item in the menu list 830 is the menu item 811. Compared with the menu list 810 before the update, the newly added menu items in the menu list 830 include menu items 831-835, and these newly added menu items are all displayed after the focus menu item 811.
[0340] It can be understood that the above step S101 only needs to be performed before step S105.
[0341] It can be seen that, when the menu list is updated by the menu list updating method provided in the embodiment of the present application, the menu items after the focus menu item in the new menu list are not announced by the electronic device. Among the menu items before the focus menu item, if the electronic device has not announced the menu item, the menu item will not be arranged between the menu items that have been announced by the electronic device. In this way, when the electronic device traverses the updated menu list, it will not cause unnecessary repeated broadcasts, and the menu list can be traversed quickly to find the menu items expected by the user, thereby improving the user's experience of using the electronic device.
[0342] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0343] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.
[0344] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0345] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
Claims
1. A menu list updating method, It is characterized in that include: Electronic devices display old menu lists; In response to a first operation on the old menu list, the electronic device announces a focus menu item displayed in the old menu list; The electronic device updates the old menu list to obtain a new menu list; The electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list; In the case where the focus menu item in the old menu list is a valid menu item, the focus menu item in the new menu list is the same as the focus menu item in the old menu list; in the case where the focus menu item in the old menu list is an invalid menu item, the focus menu item in the new menu list is different from the focus menu item in the old menu list; the valid menu item refers to a menu item that exists in both the old menu list and the new menu list; The electronic device displays the new menu list; in the new menu list, the newly added menu item is not displayed before the focus menu item in the new menu list; the newly added menu item refers to a menu item that does not exist in the old menu list but exists in the new menu list; In response to a first operation on the new menu list, the electronic device starts broadcasting from a focus menu item in the new menu list, or a first menu item after the focus menu item in the new menu list.
2. The method according to claim 1, Features: In the new menu list, the newly added menu items sorted according to the business sorting rule are displayed after the valid menu items.
3. The method according to claim 2, It is characterized in that The electronic device updates the old menu list to obtain a new menu list, comprising: The electronic device places the ordered new list after the old valid list to obtain the new menu list; the old valid list refers to the set of valid menu items; the ordered new list refers to the set of new menu items sorted according to the business sorting rule.
4. The method according to claim 1, Features: When the focus menu item in the old menu list is an invalid menu item, in the new menu list, all menu items after the focus menu item in the old menu list and the newly added menu items are sorted according to the business sorting rule and displayed after the valid menu item before the focus menu item in the old menu list; When the focus menu item in the old menu list is a valid menu item, in the new menu list, the valid menu items after the focus menu item in the old menu list and all the menu items sorted according to the business sorting rules are displayed after the focus menu item in the old menu list and the valid menu items before the focus menu item in the old menu list.
5. The method according to claim 4, It is characterized in that The electronic device updates the old menu list to obtain a new menu list, comprising: When the focus menu item in the old menu list is an invalid menu item, the electronic device places the ordered post-focus list after the old pre-focus list to obtain the new menu list; the ordered post-focus list refers to the set of all menu items after the focus menu item in the old menu list and the newly added menu items are sorted according to the business sorting rule; the old pre-focus list refers to the set of valid menu items before the focus menu item in the old menu list; When the focus menu item in the old menu list is a valid menu item, the electronic device places the ordered post-focus list after the pre-focus old list to obtain the new menu list; the ordered post-focus list refers to the set of all menu items after the focus menu item in the old menu list and the newly added menu items are sorted according to the business sorting rules; the pre-focus old list refers to the focus menu item in the old menu list and the set of valid menu items before the focus menu item in the old menu list.
6. The method according to claim 1, Features: In the new menu list, all menu items in the old menu list that have not been broadcast by the electronic device and newly added menu items are sorted according to the service sorting rule and are displayed after the valid menu items in the old menu list that have been broadcast by the electronic device.
7. The method according to claim 6, It is characterized in that The electronic device updates the old menu list to obtain a new menu list, comprising: The electronic device places the ordered unannounced list after the announced old list to obtain the new menu list; the ordered unannounced list refers to the set of all menu items in the old menu list that have not been announced by the electronic device and the newly added menu items after being sorted according to the business sorting rules; the announced old list refers to the set of valid menu items that have been announced by the electronic device.
8. The method according to claim 2 or 3, It is characterized in that The electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: When the electronic device determines that the focus menu item in the old menu list is an invalid menu item and there is a valid menu item after the focus menu item in the old menu list, the electronic device sets the first valid menu item after the focus menu item in the old menu list as the focus menu item in the new menu list; When the electronic device determines that the focus menu item in the old menu list is an invalid menu item and there is no valid menu item after the focus menu item in the old menu list, the electronic device sets the first menu item in the new menu list as the focus menu item.
9. The method according to any one of claims 2 to 5, wherein the electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically: include: When the electronic device determines that the focus menu item in the old menu list is an invalid menu item and there is a valid menu item before the focus menu item in the old menu list, the electronic device sets the first valid menu item before the focus menu item in the old menu list as the focus menu item in the new menu list; When the electronic device determines that the focus menu item in the old menu list is an invalid menu item and there is no valid menu item before the focus menu item in the old menu list, the electronic device sets the first menu item in the new menu list as the focus menu item.
10. The method according to claim 4 or 5, It is characterized in that The electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: When the electronic device determines that the focus menu item in the old menu list is an invalid menu item and there is a valid menu item before the focus menu item in the old menu list, the electronic device sets the first menu item in the new menu list that is not before the focus menu item in the old menu list as the focus menu item; When the electronic device determines that the focus menu item in the old menu list is an invalid menu item and there is no valid menu item before the focus menu item in the old menu list, the electronic device sets the first menu item in the new menu list as the focus menu item.
11. The method according to claim 6 or 7, It is characterized in that The electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: When the electronic device determines that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item that has been announced by the electronic device before the focus menu item in the old menu list, the electronic device sets the first valid menu item that has been announced by the electronic device before the focus menu item in the old menu list as the focus menu item in the new menu list; When the electronic device determines that the focus menu item in the old menu list is an invalid menu item and there is no valid menu item in the focus menu item in the old menu list that has been broadcast by the electronic device before, the electronic device sets the first menu item in the new menu list as the focus menu item.
12. The method according to claim 6 or 7, It is characterized in that The electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: When the electronic device determines that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item that has been announced by the electronic device before the focus menu item in the old menu list, the electronic device sets the first menu item in the new menu list that is not before the focus menu item in the old menu list as the focus menu item; When the electronic device determines that the focus menu item in the old menu list is an invalid menu item and the focus menu item in the old menu list has not been the valid menu item that has been broadcast by the electronic device before, the electronic device sets the first menu item in the new menu list as the focus menu item.
13. The method according to any one of claims 1 to 12, It is characterized in that The method further comprises: When the focus menu item in the new menu list has not been announced by the electronic device before the old menu list is updated, the electronic device automatically announces the focus menu item in the new menu list once; When the focus menu item in the new menu list has been announced by the electronic device before the old menu list is updated, the electronic device does not automatically announce the focus menu item in the new menu list.
14. The method according to any one of claims 1 to 12, It is characterized in that The method further comprises: The electronic device automatically announces the focus menu item in the new menu list once.
15. The method according to any one of claims 1 to 12, It is characterized in that The method further comprises: The electronic device does not automatically announce the focus menu item in the new menu list.
16. An electronic device, It is characterized in that The electronic device comprises: one or more processors and a memory; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to cause the electronic device to execute: Display the old menu list; In response to a first operation on the old menu list, announcing a focus menu item displayed in the old menu list; Updating the old menu list to obtain a new menu list; According to the focus menu item in the old menu list, the focus menu item in the new menu list is set; when the focus menu item in the old menu list is a valid menu item, the focus menu item in the new menu list is the same as the focus menu item in the old menu list; when the focus menu item in the old menu list is an invalid menu item, the focus menu item in the new menu list is different from the focus menu item in the old menu list; the valid menu item refers to a menu item that exists in both the old menu list and the new menu list; displaying the new menu list; in the new menu list, the newly added menu item is not displayed before the focus menu item in the new menu list; the newly added menu item refers to a menu item that does not exist in the old menu list but exists in the new menu list; In response to a first operation on the new menu list, the announcement starts from a focus menu item in the new menu list, or a first menu item after the focus menu item in the new menu list.
17. The electronic device according to claim 16, Features: In the new menu list, the newly added menu items sorted according to the business sorting rule are displayed after the valid menu items; the valid menu items refer to the menu items that exist in both the old menu list and the new menu list.
18. The electronic device according to claim 16, Features: When the focus menu item in the old menu list is an invalid menu item, in the new menu list, all menu items after the focus menu item in the old menu list and the newly added menu items are sorted according to the business sorting rule and are displayed after the valid menu item before the focus menu item in the old menu list; When the focus menu item in the old menu list is a valid menu item, in the new menu list, the valid menu items after the focus menu item in the old menu list and all the menu items sorted according to the business sorting rules are displayed after the focus menu item in the old menu list and the valid menu items before the focus menu item in the old menu list.
19. The electronic device according to claim 16, Features: In the new menu list, all menu items in the old menu list that have not been announced and the newly added menu items are sorted according to the service sorting rule and are displayed after the valid menu items in the old menu list that have been announced.
20. The electronic device according to claim 17, It is characterized in that According to the focus menu item in the old menu list, setting the focus menu item in the new menu list specifically includes: When it is determined that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; When it is determined that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item after the focus menu item in the old menu list, setting the first valid menu item after the focus menu item in the old menu list as the focus menu item in the new menu list; When it is determined that the focus menu item in the old menu list is an invalid menu item and there is no valid menu item after the focus menu item in the old menu list, the first menu item in the new menu list is set as the focus menu item.
21. The electronic device according to claim 17 or 18, wherein the focus menu item in the new menu list is set according to the focus menu item in the old menu list, specifically: include: When it is determined that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; When it is determined that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item before the focus menu item in the old menu list, setting the first valid menu item before the focus menu item in the old menu list as the focus menu item in the new menu list; When it is determined that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item before the focus menu item in the old menu list, the first menu item in the new menu list is the focus menu item.
22. The electronic device according to claim 18, It is characterized in that According to the focus menu item in the old menu list, setting the focus menu item in the new menu list specifically includes: When it is determined that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; When it is determined that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item before the focus menu item in the old menu list, setting the first menu item in the new menu list that is not before the focus menu item in the old menu list as the focus menu item; When it is determined that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item before the focus menu item in the old menu list, the first menu item in the new menu list is set as the focus menu item.
23. The electronic device according to claim 19, It is characterized in that According to the focus menu item in the old menu list, setting the focus menu item in the new menu list specifically includes: When it is determined that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; When it is determined that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item that has been announced before the focus menu item in the old menu list, setting the first valid menu item that has been announced before the focus menu item in the old menu list as the focus menu item in the new menu list; When it is determined that the focus menu item in the old menu list is an invalid menu item, and there is no valid menu item that has been broadcasted before the focus menu item in the old menu list, the first menu item in the new menu list is set as the focus menu item.
24. The electronic device according to claim 19, It is characterized in that According to the focus menu item in the old menu list, setting the focus menu item in the new menu list specifically includes: When it is determined that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; When it is determined that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item that has been broadcasted before the focus menu item in the old menu list, setting the first menu item in the new menu list that is not before the focus menu item in the old menu list as the focus menu item; When it is determined that the focus menu item in the old menu list is an invalid menu item, and the focus menu item in the old menu list does not have the valid menu item that has been broadcasted before, the first menu item in the new menu list is set as the focus menu item.
25. The electronic device according to any one of claims 16 to 24, It is characterized in that The one or more processors invoke the computer instructions to cause the electronic device to further execute: When the focus menu item in the new menu list has not been announced before the old menu list is updated, the focus menu item in the new menu list is automatically announced once; When the focus menu item in the new menu list has been announced before the old menu list is updated, the focus menu item in the new menu list is not automatically announced.
26. The electronic device according to any one of claims 16 to 24, It is characterized in that The one or more processors invoke the computer instructions to cause the electronic device to further execute: The focused menu item in the new menu list is automatically announced once.
27. The electronic device according to any one of claims 16 to 24, It is characterized in that The one or more processors invoke the computer instructions to cause the electronic device to further execute: The focused menu item in the new menu list is not automatically announced.
28. An electronic device, It is characterized in that The electronic device comprises: Display module, used to display the old menu list; a response module, configured to, in response to a first operation on the old menu list, announce a focus menu item displayed in the old menu list; An updating module, used for updating the old menu list to obtain a new menu list; a setting module, for setting a focus menu item in the new menu list according to the focus menu item in the old menu list; when the focus menu item in the old menu list is a valid menu item, the focus menu item in the new menu list is the same as the focus menu item in the old menu list; when the focus menu item in the old menu list is an invalid menu item, the focus menu item in the new menu list is different from the focus menu item in the old menu list; the valid menu item refers to a menu item that exists in both the old menu list and the new menu list; The display module is also used to display the new menu list; in the new menu list, the newly added menu item is not displayed before the focus menu item in the new menu list; the newly added menu item refers to a menu item that does not exist in the old menu list but exists in the new menu list; The response module is further configured to, in response to a first operation on the new menu list, cause the electronic device to start broadcasting from a focus menu item in the new menu list, or a first menu item after the focus menu item in the new menu list.
29. The electronic device according to claim 28, Features: In the new menu list, the newly added menu items sorted according to the business sorting rule are displayed after the valid menu items; the valid menu items refer to the menu items that exist in both the old menu list and the new menu list.
30. The electronic device according to claim 28, Features: When the focus menu item in the old menu list is an invalid menu item, in the new menu list, all menu items after the focus menu item in the old menu list and the newly added menu items are sorted according to the business sorting rule and are displayed after the valid menu item before the focus menu item in the old menu list; When the focus menu item in the old menu list is a valid menu item, in the new menu list, the valid menu items after the focus menu item in the old menu list and all the menu items sorted according to the business sorting rules are displayed after the focus menu item in the old menu list and the valid menu items before the focus menu item in the old menu list.
31. The electronic device according to claim 28, Features: In the new menu list, all menu items in the old menu list that have not been announced and newly added menu items are sorted according to the service sorting rule and are displayed after the valid menu items in the old menu list that have been announced by the electronic device.
32. The electronic device according to claim 29, It is characterized in that The setting module is used to set the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: When the setting module determines that the focus menu item in the old menu list is a valid menu item, the setting module sets the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; When the setting module determines that the focus menu item in the old menu list is an invalid menu item and there is a valid menu item after the focus menu item in the old menu list, setting the first valid menu item after the focus menu item in the old menu list as the focus menu item in the new menu list; When the setting module determines that the focus menu item in the old menu list is an invalid menu item and there is no valid menu item after the focus menu item in the old menu list, the first menu item in the new menu list is set as the focus menu item.
33. The electronic device according to claim 29 or 30, It is characterized in that The setting module is used to set the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: When the setting module determines that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; When the setting module determines that the focus menu item in the old menu list is an invalid menu item and there is a valid menu item before the focus menu item in the old menu list, setting the first valid menu item before the focus menu item in the old menu list as the focus menu item in the new menu list; When the setting module determines that the focus menu item in the old menu list is an invalid menu item and there is no valid menu item before the focus menu item in the old menu list, the first menu item in the new menu list is the focus menu item.
34. The electronic device according to claim 30, It is characterized in that The setting module is used to set the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: When the setting module determines that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; When the setting module determines that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item before the focus menu item in the old menu list, setting the first menu item in the new menu list that is not before the focus menu item in the old menu list as the focus menu item; When the setting module determines that the focus menu item in the old menu list is an invalid menu item and a valid menu exists before the focus menu item in the old menu list, the first menu item in the new menu list is set as the focus menu item.
35. The electronic device according to claim 31, It is characterized in that The setting module is used to set the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: When the setting module determines that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; When the setting module determines that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item that has been announced before the focus menu item in the old menu list, setting the first valid menu item that has been announced before the focus menu item in the old menu list as the focus menu item in the new menu list; When the setting module determines that the focus menu item in the old menu list is an invalid menu item and there is no valid menu item that has been broadcasted before the focus menu item in the old menu list, the first menu item in the new menu list is set as the focus menu item.
36. The electronic device according to claim 31, It is characterized in that The setting module is used to set the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically including: When the setting module determines that the focus menu item in the old menu list is a valid menu item, setting the focus menu item in the new menu list to be the same as the focus menu item in the old menu list; When the setting module determines that the focus menu item in the old menu list is an invalid menu item, and there is a valid menu item that has been broadcasted before the focus menu item in the old menu list, the first menu item in the new menu list that is not before the focus menu item in the old menu list is set as the focus menu item; When the setting module determines that the focus menu item in the old menu list is an invalid menu item, and the focus menu item in the old menu list does not have the valid menu item that has been broadcasted before, the first menu item in the new menu list is set as the focus menu item.
37. A chip system, applied to an electronic device, the chip system comprising one or more processors, the processors being used to call computer instructions so that the electronic device executes the method as described in any one of claims 1-15.
38. A computer program product comprising instructions, It is characterized in that When the computer program product is executed on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 15.
39. A computer-readable storage medium comprising instructions, It is characterized in that When the instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 15.
Citation Information
Patent Citations
Method and device for reminding blind social environment based on Bluetooth
CN101623231A
Message reminding method, electronic equipment and storage medium
CN111078427A
Cited By
Menu list update method and electronic device
WO2022179343A1