WO2022179343A1 - 一种菜单列表更新方法和电子设备 - Google Patents

一种菜单列表更新方法和电子设备 Download PDF

Info

Publication number
WO2022179343A1
WO2022179343A1 PCT/CN2022/072536 CN2022072536W WO2022179343A1 WO 2022179343 A1 WO2022179343 A1 WO 2022179343A1 CN 2022072536 W CN2022072536 W CN 2022072536W WO 2022179343 A1 WO2022179343 A1 WO 2022179343A1
Authority
WO
WIPO (PCT)
Prior art keywords
menu
list
menu item
old
item
Prior art date
Application number
PCT/CN2022/072536
Other languages
English (en)
French (fr)
Inventor
周送乐
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP22758709.4A priority Critical patent/EP4283448A4/en
Publication of WO2022179343A1 publication Critical patent/WO2022179343A1/zh
Priority to US18/238,071 priority patent/US20230400963A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Definitions

  • the present application relates to the technical field of terminals and communications, and in particular, to a menu list update method and electronic device.
  • the accessibility function is enabled on the electronic device
  • the content displayed in the user interface can be broadcast. Users can obtain relevant information by listening to the broadcast content.
  • the user can traverse the menu list according to a certain way of operating the electronic device, and obtain all the contents in the menu list. For example, the user gets the content displayed in the first menu item of the menu list, the user can swipe down the UI to get the content displayed in the second menu item, and then swipe down the UI to get the content displayed in the third menu item displayed content.
  • the user can obtain all the contents displayed in the menu list by sliding down the user interface, which is a way of operating the electronic device.
  • the present application provides a menu list update method and electronic device. After the menu list is updated, the electronic device can quickly traverse the menu list to find the desired menu item, thereby improving the user's experience of using the electronic device.
  • the present application provides a method for updating a menu list.
  • the method includes: an electronic device displays an old menu list; the electronic device updates the old menu list to obtain a new menu list; Focus menu item, set the focus menu item in 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 A 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 newly added menu item when the menu list is updated, the newly added menu item may be used as the focus menu item, or may be 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, he can quickly traverse all the menu items without causing unnecessary repeated broadcasts, and find the menu item expected by the user, Improve the user experience of using electronic devices.
  • displaying the new menu list by the electronic device specifically includes: the electronic device displaying the new menu list; in the new menu list, after sorting according to the service sorting rule
  • the newly added menu item of is displayed after the valid menu item; the valid menu item refers to the menu item that exists in both the old menu list and the new menu list.
  • 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. When the electronic device traverses to these newly added menu items, unnecessary repeated broadcast will not be caused. In this way, the electronic device can quickly traverse the new menu list to find the menu item desired by the user.
  • the method further includes: the electronic device places the ordered new list after the old effective list to obtain the new menu list; the old effective list refers to the effective menu A collection of items; the ordered new list refers to a collection of newly added menu items sorted according to the business sorting rule.
  • the focused menu in the old menu list is an invalid menu item, in the new menu list
  • the focused menu in the old menu list is Valid menu items and new menu items after the item are sorted according to the business sorting rules. All menu items are displayed after the valid menu items before the focused menu item in the old menu list; when the focused menu item in the old menu list When it 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 after the newly added menu items are sorted according to the business sorting rules are displayed in the old menu list. the focused menu item and after the active menu item before the focused menu item in this old menu list.
  • the valid menu items after the focus menu item in the old menu list can be sorted according to the business sorting rule together with the newly added menu items, so that all menu items after the focus menu item in the new menu list look like The more orderly, the more likely the user-desired menu item is closer to the focused menu item. In this way, the electronic device can find the menu item desired by the user more quickly.
  • the method further includes: the electronic device updating the old menu list, and obtaining a new menu list includes: when the focused menu item in the old menu list is an invalid menu item , the electronic device places the ordered list after the focus after the old list before the focus, and obtains the new menu list; the list after the ordered focus refers to the effective menu items and new menu items after the focus menu item in the old menu list
  • the set of all menu items after items are sorted according to the business sorting rules;
  • the old list before the focus refers to the set of valid menu items before the focused menu item in the old menu list; when the focused menu item in the old menu list is When the menu item is valid, the electronic device places the ordered post-focus list after the old pre-focus list to obtain the new menu list;
  • the post-order post-focus list refers to the valid menu items after the focused menu item in the old menu list A collection of all menu items sorted according to business sorting rules with the newly added menu items;
  • the old list before the focus refers to the focused menu
  • the electronic device displays the new menu list, which specifically includes: the electronic device displays the new menu list; in the new menu list, no items in the old menu list All menu items after the valid menu items broadcasted by the electronic device and the newly added menu items are sorted according to the business sorting rule are displayed after the valid menu items that have been broadcasted by the electronic device in the old menu list;
  • the menu items broadcast 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 broadcast by the electronic device.
  • the menu items are sorted according to the business sorting rules, so that the electronic device can quickly traverse the new menu list without causing repeated broadcasts, and can quickly find the menu items expected by the user, improving the user's use of the electronic device. experience.
  • the method further includes: the electronic device places the ordered unbroadcast list after the broadcasted old list to obtain the new menu list; the ordered unbroadcast list is Refers to the set of valid menu items in the old menu list that have not been broadcast by the electronic device and all menu items that are newly added menu items sorted according to the business sorting rule; A collection of valid menu items that have been announced by the device.
  • the electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list, which specifically includes: when the electronic device determines that the old menu item When the focused menu item in the menu list is a non-inactive menu item, the electronic device sets the focused menu item in the new menu list to be the same as the focused menu item in the old menu list; when the electronic device determines the focus in the old menu list When the menu item is an invalid menu item, and there is a non-invalid menu item after the focus menu item in the old menu list, the electronic device sets the first non-invalid menu item after the focus menu item in the old menu list as the new menu item.
  • the focused menu item in the menu list when the electronic device determines that the focused menu item in the old menu list is an invalid menu item, and there is no non-invalid menu item after the focused menu item in the old menu list, the electronic device sets the The first menu item in the new menu list is the focused menu item.
  • the electronic device sets the focused menu item in the new menu list according to whether there is a valid menu item after the focused menu item in the old menu list.
  • the focus menu item in the new menu list can be quickly set, and in the new menu list, the focus menu item broadcasted by the electronic device is displayed before the focus menu item.
  • the electronic device starts broadcasting the new menu list from the focused menu item, it can traverse the new menu list more quickly.
  • the electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list, which specifically includes: when the electronic device determines that the old menu item When the focused menu item in the menu list is a valid menu item, the electronic device sets the focused menu item in the new menu list to be the same as the focused menu item in the old menu list; when the electronic device determines the focus in the old menu list When the menu item 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 new menu item in the new menu list.
  • the electronic device when the electronic device determines that the focus menu item in the old menu list is an invalid menu item, and there is no non-invalid menu before the focus menu item in the old menu list, the electronic device sets the focus menu item in the new menu list
  • the first menu item of is the focused menu item.
  • the electronic device sets the focused menu item in the new menu list according to whether there is a valid menu item before the focused menu item in the old menu list.
  • the focus menu item in the new menu list can be quickly set, and in the new menu list, the focus menu item broadcasted by the electronic device is displayed before the focus menu item.
  • the electronic device starts broadcasting the new menu list from the focused menu item, it can traverse the new menu list more quickly.
  • the electronic device when the electronic device determines that the focused menu item in the old menu list is a valid menu item, the electronic device sets the focused menu item in the new menu list to be the same as the focused menu item in the new menu list.
  • the focused menu items in the old menu list are the same; when the electronic device determines that the focused menu item in the old menu list is an invalid menu item, and there is a valid menu item before the focused menu item in the old menu list, the electronic device sets In the new menu list, the first menu item before the focused menu item in the old menu list is the focused menu item; when the electronic device determines that the focused menu item in the old menu list is an invalid menu item, and the When there is no non-inactive menu before the focused menu item in the old menu list, the electronic device sets the first menu item in the new menu list as the focused menu item.
  • the electronic device sets the focused menu item in the new menu list according to whether there is a valid menu item before the focused menu item in the old menu list.
  • the focus menu item in the new menu list can be quickly set, and in the new menu list, the focus menu item broadcasted by the electronic device is displayed before the focus menu item.
  • the electronic device starts broadcasting the new menu list from the focused menu item, it can traverse the new menu list more quickly.
  • the electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list, which specifically includes: when the electronic device determines that the old menu item When the focused menu item in the menu list is a valid menu item, the electronic device sets the focused menu item in the new menu list to be the same as the focused menu item in the old menu list; when the electronic device determines the focus in the old menu list When the menu item 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 before the focus menu item in the old menu list.
  • the effective menu item that has been broadcast by the electronic device is the focused menu item in the new menu list; when the electronic device determines that the focused menu item in the old menu list is an invalid menu item, and the focused menu item in the old menu list When there is no valid menu item that has been broadcasted by the electronic device before, the electronic device sets the first menu item in the new menu list as the focus menu item.
  • the electronic device sets the focused menu item in the new menu list according to whether there is a valid menu item before the focused menu item in the old menu list.
  • the focus menu item in the new menu list can be quickly set, and in the new menu list, the focus menu item broadcasted by the electronic device is displayed before the focus menu item.
  • the electronic device starts broadcasting the new menu list from the focused menu item, it can traverse the new menu list more quickly.
  • the electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list, which specifically includes: when the electronic device determines that the old menu item When the focused menu item in the menu list is a valid menu item, the electronic device sets the focused menu item in the new menu list to be the same as the focused menu item in the old menu list; when the electronic device determines the focus in the old menu list When the menu item is an invalid menu item, and the focus menu item of the old menu list has a valid menu item that has been broadcast by the electronic device before, the electronic device sets the new menu list, and the first one is not in the old menu list.
  • the menu item before the focused menu item is the focused menu item; when the electronic device determines that the focused menu item in the old menu list is an invalid menu item, and the focused menu item in the old menu list has not been broadcast by the electronic device before When the valid menu item is displayed, the electronic device sets the first menu item in the new menu list as the focus menu item.
  • the electronic device sets the focused menu item in the new menu list according to whether there is a valid menu item before the focused menu item in the old menu list.
  • the focus menu item in the new menu list can be quickly set, and in the new menu list, the focus menu item broadcasted by the electronic device is displayed before the focus menu item.
  • the electronic device starts broadcasting the new menu list from the focused menu item, it can traverse the new menu list more quickly.
  • the method further includes: when the focused 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 broadcast the focused menu item in the new menu item list once; when the focused menu item in the new menu item list has been broadcasted by the electronic device before the old menu list is updated, the electronic device does not automatically broadcast the new menu item The focused menu item in the item list.
  • the electronic device does not automatically broadcast the focus menu item that has been broadcasted by the electronic device, which reduces unnecessary repeated broadcasts.
  • the menu list is updated frequently, it can avoid the situation of repeating the broadcast several times.
  • the electronic device will automatically broadcast the focus menu item that has not been broadcasted by the electronic device, so as to prevent the electronic device from missing to broadcast the menu item.
  • the method further includes: the electronic device automatically broadcasts the focused menu item in the new menu item list once.
  • the electronic device does not need to determine whether the focused menu item has been broadcasted by the electronic device, and directly sets the focused menu item to be broadcasted automatically, so as to prevent the electronic device from missing to broadcast the focused menu item.
  • the method further includes: the electronic device does not automatically broadcast the focused menu item in the new menu item list.
  • the electronic device does not need to determine whether the focus menu item has been broadcasted by the electronic device, and directly sets the focus menu item not to be broadcast automatically, thereby reducing unnecessary repeated broadcasts.
  • the menu list is updated frequently, a large number of repeated broadcasts can be avoided.
  • an embodiment of the present application provides an electronic device, the electronic device includes: 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,
  • the computer program code includes computer instructions that the one or more processors invoke to cause the first electronic device to perform: display an old menu list; update the old menu list to obtain a new menu list; the focus menu item, set the focus menu item in the new menu list; display the new menu list; in the new menu list, the new menu item is not displayed before the focus menu item in the new menu list; the new menu item A menu item refers to a menu item that does not exist in the old menu list but exists in the new menu list.
  • the newly added menu item when the menu list is updated, the newly added menu item may be used as the focus menu item, or may be 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, he can quickly traverse all the menu items without causing unnecessary repeated broadcasts, and find the menu item expected by the user, Improve the user experience of using electronic devices.
  • displaying the new menu list specifically includes: displaying the new menu list; in the new menu list, displaying newly added menu items sorted according to service sorting rules After a valid menu item; the valid menu item refers to a menu item that exists in both the old menu list and the new menu list.
  • the updating the old menu list to obtain the new menu list includes: placing the ordered new list after the old effective list, and obtaining the new menu list; the old effective list is obtained;
  • the list refers to the set of valid menu items;
  • the ordered new list refers to the set of newly added menu items sorted according to the business sorting rule.
  • the focused menu in the old menu list is an invalid menu item, in the new menu list
  • the focused menu in the old menu list is Valid menu items and new menu items after the item are sorted according to the business sorting rules. All menu items are displayed after the valid menu items before the focused menu item in the old menu list; when the focused menu item in the old menu list When it 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 after the newly added menu items are sorted according to the business sorting rules are displayed in the old menu list. the focused menu item and after the active menu item before the focused menu item in this old menu list.
  • the updating the old menu list to obtain the new menu list includes: the updating the old menu list, and the obtaining of the new menu list includes: when the focus menu in the old menu list is When the item is an invalid menu item, the post-focus list should be placed after the old list before the focus to get the new menu list; the post-focus list refers to the valid menu items after the focused menu item in the old menu list The set of all menu items sorted with the new menu item according to the business sorting rules; the old list before the focus refers to the set of valid menu items before the focused menu item in the old menu list; when the old menu item in the old menu list When the focused menu item 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 post-order post-focus list refers to after the focused menu item in the old menu list The set of valid menu items and new menu items sorted according to business sorting rules; the old list before the focus refers to the focus
  • displaying the new menu list specifically includes: displaying the new menu list; in the new menu list, valid menus in the old menu list that have not been broadcasted All menu items after the items and the newly added menu items are sorted according to the business sorting rule are displayed after the valid menu items that have been broadcasted in the old menu list.
  • the method further 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 collection of new menu items sorted according to the business sorting rule.
  • the method further includes: placing the ordered unbroadcast list after the old broadcast list to obtain the new menu list; the ordered unbroadcast list refers to the old The set of valid menu items in the menu list that have not been broadcasted by the electronic device and all menu items that are newly added menu items sorted according to the business sorting rule; A collection of valid menu items.
  • setting the focused menu item in the new menu list according to the focused menu item in the old menu list specifically includes: when determining the focused menu item in the old menu list When the item is a non-invalid menu item, set 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 the old menu list
  • setting the first non-invalid menu item after the focus menu item in the old menu list as the focus menu item in the new menu list when the focused menu item is an invalid menu item, and there is no non-invalid menu item after the focused menu item in the old menu list, set the first menu item in the new menu list as the focused menu item.
  • setting the focused menu item in the new menu list according to the focused menu item in the old menu list specifically includes: when determining the focused menu item in the old menu list When the item is a valid menu item, set 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 the old menu list When there is a valid menu item before the focus menu item in the old menu list, 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; When the item is an invalid menu item, and the focus menu item in the old menu list has no non-invalid menu before it, the first menu item in the new menu list is the focus menu item.
  • setting the focused menu item in the new menu list according to the focused menu item in the old menu list specifically includes: when determining the focused menu item in the old menu list When the item is a valid menu item, set 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 the old menu list When there is a valid menu item before the focused menu item in the When the focused menu item is an invalid menu item, and there is no non-invalidated menu before the focused menu item in the old menu list, set the first menu item in the new menu list as the focused menu item.
  • setting the focused menu item in the new menu list according to the focused menu item in the old menu list specifically includes: when determining the focused menu item in the old menu list When the item is a valid menu item, set 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 the old menu list When there is a valid menu item that has been broadcast before the focus menu item in ; 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 has no valid menu item that has been broadcast before, set the first menu item in the new menu list item is the focused menu item.
  • setting the focused menu item in the new menu list according to the focused menu item in the old menu list specifically includes: when determining the focused menu item in the old menu list When the item is a valid menu item, set 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 the old menu list When there is a valid menu item that has been broadcast before the focus menu item, 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; when determining the old menu item When the focus menu item in the list is an invalid menu item, and the focus menu item in the old menu list has no valid menu item that has been broadcast before, set the first menu item in the new menu list as the focus menu item.
  • the method further includes: when the focus menu item in the new menu item list is not broadcast out of date before the old menu list is updated, automatically broadcast the new menu once The focused menu item in the item list; when the focused menu item in the new menu item list has been broadcast before the old menu list is updated, the focused menu item in the new menu item list is not automatically broadcast.
  • the method further includes: automatically broadcasting the focused menu item in the new menu item list once.
  • the method further includes: not automatically broadcasting the focused menu item in the new menu item list.
  • an embodiment of the present application provides an electronic device, the electronic device includes: 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 using for setting the 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, the newly added menu item is not displayed in the new menu list Before the focused menu item in the new menu list; the newly added menu item refers to the menu item that did not exist in the old menu list but exists in the new menu list.
  • the newly added menu item when the menu list is updated, the newly added menu item may be used as the focus menu item, or may be 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, he can quickly traverse all the menu items without causing unnecessary repeated broadcasts, and find the menu item expected by the user, Improve the user experience of using electronic devices.
  • the display module is further configured to display the new menu list, which specifically includes: the display module displays the new menu list; in the new menu list, according to business sorting rules The sorted new menu items 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.
  • the display module is further configured to display the new menu list, which specifically includes: the display module displays the new menu list; when the focused menu item in the old menu list is When the menu item is invalid, in the new menu list, the valid menu items after the focus menu item in the old menu list and all the menu items after the newly added menu items are sorted according to the business sorting rules are displayed in the old menu list.
  • the effective menu item before the focused menu item when the focused menu item in the old menu list is a valid menu item, in the new menu list, the effective menu item after the focused menu item in the old menu list is the same as the newly added menu item. All menu items after the menu items are sorted according to the business sorting rule are displayed in the old menu list after the focused menu item and the valid menu item before the focused menu item.
  • the display module is further configured to display the new menu list, specifically including: the display module displays the new menu list; in the new menu list, the old menu list All the menu items in the old menu list after the valid menu items that have not been broadcasted and the newly added menu items are sorted according to the business sorting rule are displayed after the valid menu items that have been broadcasted by the electronic device in the old menu list.
  • the setting module configured to set the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically includes: when the setting module determines When the focus menu item in the old menu list is a non-invalid 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 When the focus menu item is an invalid menu item, and there is a non-invalid menu item after the focus menu item in the old menu list, set the first non-invalid menu item after the focus menu item in the old menu list as the new menu item The focus menu item in the 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 non-invalid menu item after the focus menu item in the old menu list, set the focus menu item in the new menu list The first menu item of is the focused menu item.
  • the setting module configured to set the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically includes: when the setting module determines When the focus menu item in the old menu list is a valid menu item, set 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 the focus menu item in the old menu list When the item is an invalid menu item and there is a valid menu item before the focus menu item in the old menu list, 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 ; When the setting module determines that the focus menu item in the old menu list is an invalid menu item, and there is no non-invalid 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.
  • the setting module configured to set the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically includes: when the setting module determines When the focus menu item in the old menu list is a valid menu item, set 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 the focus menu item in the old menu list When the item is an invalid menu item and there is a valid menu item before the focused menu item in the old menu list, set the first menu item in the new menu list that is not before the focused 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 non-invalid menu before the focus menu item in the old menu list, set the first menu item in the new menu list item is the focused menu item.
  • the setting module configured to set the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically includes: when the setting module determines When the focus menu item in the old menu list is a valid menu item, set 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 the focus menu item in the old menu list When the item is an invalid menu item, and there is a valid menu item that has been broadcast before the focus menu item in the old menu list, set the first valid menu item that has been broadcast before the focus menu item in the old menu list item is 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 the focus menu item in the old menu list has no valid menu that has been broadcast before item, sets the first menu item in the new menu list as the focused menu item.
  • the setting module configured to set the focus menu item in the new menu list according to the focus menu item in the old menu list, specifically includes: when the setting module determines When the focus menu item in the old menu list is a valid menu item, set 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 the focus menu item in the old menu list When the item is an invalid menu item, and there is a valid menu item that has been broadcast before the focus menu item of the old menu list, set the first menu item in the new menu list that is not the menu before the focus menu item in the old menu list item is 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 broadcast before, set The first menu item in this new menu list is the focused menu item.
  • an embodiment of the present application provides a chip system, the chip system is applied to an electronic device, the chip system includes one or more processors, and the processors are configured to invoke computer instructions to cause the electronic device to execute the first Aspects and methods described in any one possible implementation of the first aspect.
  • an embodiment of the present application provides a computer program product containing instructions, when the computer program product is run on an electronic device, the electronic device is made to perform the first aspect and any one of the possible implementations of the first aspect method described in the manner.
  • an embodiment of the present application provides a computer-readable storage medium, including instructions, when the instructions are executed on an electronic device, the electronic device is made to perform the first aspect and any one of the possible implementations of the first aspect method described in the manner.
  • 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 embodiments of the present application. provided method. Therefore, for the beneficial effects that can be achieved, reference may be made to the beneficial effects in the corresponding method, which will not be repeated here.
  • 1 is an exemplary user interface for enabling the screen reading function in the barrier-free function of an electronic device provided by an embodiment of the present application;
  • FIG. 2 is a schematic diagram of a menu list provided by an embodiment of the present application.
  • FIG. 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;
  • 4 is a set of exemplary user interfaces for an electronic device to broadcast a menu list in one solution
  • Fig. 5 is an exemplary flow chart of updating the menu list in a scheme
  • FIG. 6 is a set of exemplary user interfaces in the menu list update method provided by the embodiment of the present application.
  • 7a-7e are a set of exemplary user interfaces when the menu list in the "WLAN" application provided by the embodiment of the present application is updated;
  • 8a-8d are a set of exemplary user interfaces when the menu list in the communication application provided by the embodiment of the present application is updated;
  • Fig. 9 is another exemplary user interface when the menu list in the "WLAN" application provided by the embodiment of the present application is updated;
  • FIG. 10 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application.
  • FIG. 11 is an exemplary schematic flowchart of a method for updating a menu list provided by an embodiment of the present application.
  • FIG. 12 is a set of schematic diagrams of obtaining a new menu list by an electronic device according to an embodiment of the present application using Mode 1;
  • FIG. 13 is a flowchart of obtaining a new menu list by the electronic device provided by the embodiment of the present application by adopting method 1;
  • FIG. 16 is a flowchart of obtaining another new menu list by the electronic device according to the embodiment of the present application by adopting method 3;
  • FIG. 18 is a set of schematic diagrams of setting a focus menu item in a new menu list by an electronic device according to an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as implying or implying relative importance or implying the number of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, the “multiple” The meaning is two or more.
  • GUI graphical user interface
  • the accessibility function refers to an interactive function that can make the intention of the visually impaired user understand.
  • Accessibility features can provide text-to-speech, screen-to-speech, and more for electronic devices.
  • the electronic device can broadcast the content selected by the user on the current user interface. For example, when a user selects text displayed in a control on the user interface, the electronic device can play the text.
  • the electronic device can also voice prompt the user how to operate the selected content. For example, when a user selects a button on the user interface, the electronic device can inform the user how to operate the button by broadcasting: "Double-tap with one finger to execute the button".
  • FIG. 1 shows an exemplary user interface 11 and user interface 12 for enabling the screen reading function after the electronic device enters the accessibility function.
  • the user interface 11 and user interface 12 may be provided by the "Settings" application.
  • the electronic device may display the user as shown in (b) of FIG. 1 . interface 12.
  • the user interface 12 is a setting interface of the barrier-free function.
  • the electronic device may turn on screen-to-speech. After the screen reading is turned on, the electronic device can interact with the user by broadcasting relevant content. For example, at this time, the electronic device can broadcast: "screen reading is turned on”.
  • the user interface 11 and the user interface 12 are just a set of exemplary user interfaces for the electronic device to broadcast by using the screen reading function in the accessibility function.
  • the electronic device may also enable the screen reading function by default to broadcast.
  • the electronic device may also broadcast by other methods, which is not limited here.
  • the menu list includes one or more menu items. This menu item can be displayed in a control.
  • Each menu item in the same menu list has the same display format.
  • the same display format means that when a menu item is displayed in a control, if content is displayed in the same position of different controls, the content is of the same category, such as icons and texts.
  • FIG. 2 is a schematic diagram of a menu list in an embodiment of the present application.
  • a menu list 210 is displayed in the user interface 21 .
  • the menu items displayed in the user interface 21 in the menu list may be menu item 211-menu item 2110.
  • menu items in the menu list 210 may include other menu items not displayed in the user interface 21 in addition to the menu items 211-menu item 2110 that have been displayed in the user interface 21 . That is, as long as the menu items that can be displayed on the user interface are the contents of the menu list.
  • menu item 211 has the same display format. For example, comparing menu item 211 with menu item 212 shows:
  • the positions of area 2111 and area 2112 in the control displaying menu item 211 are the same as the positions of area 2114 and area 2115 in the control displaying menu item 212 .
  • the content displayed in both areas is text.
  • the location of area 2113 in the control displaying menu item 211 is the same as the location of area 2116 in the control displaying menu item 212 .
  • the content displayed in both areas is an icon.
  • the focus menu item refers to a menu item in the menu list that is being broadcast by the electronic device or is not currently being broadcast by the electronic device, but will be broadcast by the electronic device once the broadcast condition is triggered.
  • the electronic device sets menu item A as the focus menu item, but does not broadcast the menu item A.
  • the user's click operation on menu item A may be used as a broadcast condition for triggering menu item A to be broadcast by the electronic device. That is, in response to the user's click operation on the menu item A, the electronic device can broadcast the menu item A.
  • the user's sliding operation on menu item A may be used as a broadcast condition for triggering menu item A to be broadcast by the electronic device.
  • the electronic device may also take other operations as a broadcast condition for the menu item A to be broadcast by the electronic device. There is no limitation here.
  • the electronic device can enable the screen reading function in the barrier-free function to enable the electronic device to broadcast menu items, and can also use other methods to enable the electronic device to broadcast menu items, which is not limited in this embodiment of the present application.
  • FIG. 3 shows a schematic diagram of the menu item in the menu list becoming the focus menu item in the example of the present application.
  • menu item 310 is displayed in user interface 31 .
  • the electronic device can broadcast the menu item 310: "The signal strength of the five-encrypted WLAN is full".
  • the menu item 310 is the focus menu item.
  • the focused menu item can be changed.
  • the electronic device in response to a user's operation of changing the focused menu item (eg, a swipe operation), the electronic device may set the next menu item of the current focused menu item as the focused menu item.
  • the electronic device in response to a user's operation of changing the focused menu item (eg, a swipe-up operation), the electronic device may set the previous menu item of the current focused menu item as the focused menu item. It can be understood that there are other ways of changing the focus menu item, which are not limited in this embodiment of the present application.
  • the electronic device when the electronic device broadcasts the focus menu item, it can broadcast other information besides the focus menu item. For example, information such as how many items the focused menu item is in the menu list can also be broadcast. This embodiment of the present application does not limit this.
  • the electronic device can enable the user to obtain the information involved in the menu list by broadcasting the menu list.
  • the user interface 51 may include a menu list 510 , and all menu items in the menu list include menu item 511 - menu item 5110 .
  • This menu list 510 may be provided by the "WLAN" application. It is assumed that the user traverses the menu list 510 from the first menu item by sliding down the user interface, and has acquired the information related to the first three menu items, namely menu item 511 to menu item 513 .
  • the fourth menu item 514 in the menu list 510 is the focused menu item, the electronic device starts to update the menu list 510 .
  • the electronic device executes the flow shown in FIG. 5 and can update the menu list 510 .
  • the electronic device first executes the WLAN update logic. Then, based on the WLAN update logic, WLAN data is acquired. The WLAN data is then sorted based on the WLAN sorting rule to obtain an updated menu list. For example, the ordering rule may be to sort unencrypted WLAN data after encrypted WLAN data, and so on. Finally, the updated menu list is displayed in the user interface.
  • the updated menu list may be the menu list 520 displayed in the user interface 52 . Since the focused menu item in the menu list 510 before the update is the fourth menu item 514 in the menu list, the electronic device can continue to set the menu according to the position of the focused menu item in the menu list does not change or according to the focused menu item does not change The fourth menu item 514 in list 520 is the focused menu item. The user may continue to swipe down the user interface to traverse menu items following this menu item 514.
  • the focused menu item in the updated menu list 520 is the menu item 514 .
  • the menu items in front of the menu item 514 may not be broadcast by the electronic device, for example, the menu item 522, the menu item 522 exists in the middle of the menu item 511, the menu item 512, and the menu item 514 that have been broadcasted by the electronic device. .
  • Menu items following menu item 514 may have been announced by the electronic device, such as menu item 513 .
  • the information that the user needs to acquire is the information related to the menu item 522 .
  • the electronic device needs to repeatedly broadcast menu item 511 , menu item 512 , menu item 513 , and menu item 514 before broadcasting to menu item 522 .
  • the visually impaired user can quickly traverse the menu list to find the desired menu item, thereby improving the user's experience of using the electronic device.
  • the menu list update method in the embodiment of the present application for the menu list 510 in the user interface 51 shown in (a) of FIG. 4 , it is assumed that the user traverses the menu list by sliding the user interface down. 510's.
  • the electronic device has broadcast the first three menu items, and when the fourth menu item 514 is broadcast, the menu list 510 is updated.
  • the user interface 71 as shown in (a) of FIG. 6 can be obtained.
  • the electronic device can set the focused menu item in the menu list 710 in the user interface 71 to remain unchanged, and still be the fourth menu item 514 .
  • the invalid menu items in the menu list 710 include the menu item 515 and the menu item 517 .
  • Valid menu items include menu item 512 - menu item 514 , menu item 516 , menu item 518 - menu item 5110 , and newly added menu items include menu item 711 and menu item 712 .
  • the electronic device does not display the invalid menu item in the menu list 710 ; the menu item 511 - the menu item 513 among the valid menu items can still be displayed before the focused menu item 514 .
  • Menu item 516, menu item 518 - menu item 5110 are still displayed after the focused menu item. Both the newly added menu item 711 and the menu item 712 can be displayed behind the focused menu item 514 .
  • invalid menu items refer to menu items that exist in the menu list before the update but do not exist in the menu list after the update; valid menu items refer to the menu items that exist both in the menu list before the update and after the update.
  • the menu item in the menu list of the updated menu item; the new menu item refers to the menu item that does not exist in the menu list before the update but exists in the menu list after the update.
  • the electronic device may display a user interface 72 as shown in (b) of FIG. 6 .
  • the focused menu item of the menu list 710 is the next menu item 516 of the previously focused menu item 514 .
  • the electronic device can broadcast the menu item 516: "six encrypted WLAN signal strength is full”.
  • the focused menu item may become the next menu item of the menu item 516, and the electronic device may broadcast the menu item.
  • the user can continue to slide down the user interface, and the electronic device can broadcast the menu items following the menu item 516 in sequence. Does not cause unnecessary repetition of broadcasts.
  • the electronic device can quickly traverse the menu list 710 .
  • the visually impaired user can quickly find the desired menu item, thereby improving the visually impaired user's sense of using the electronic device.
  • Method 1 Compared with the menu list before the update, the electronic device can use the valid menu items in the updated menu list as the front part of the updated menu list; after a valid menu item. Get the updated menu list.
  • Mode 2 For the menu items that are in the effective menu items before the focus menu item (including the focus menu item) in the menu list before the update, the electronic device can keep the relative order of these menu items in the menu list before the update, and put these menu items in the menu list before the update. Items are placed in the front part of the updated menu list; the electronic device can sort the menu items after the focus menu item of the menu list before the update among the valid menu items according to the business sorting rules together with the newly added menu items, and then use them as the updated menu items. The latter part of the menu list after the Get the updated menu list.
  • Mode 3 For the menu items that have been broadcasted by the electronic device among the valid menu items, the electronic device can keep 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 menu list after the update. ; The electronic device can sort the menu items that have not been broadcasted by the electronic device in the valid menu items together with the newly added menu items according to the business sorting rules, and then use them as the latter part of the updated menu list. Get the updated menu list.
  • Application scenario 1 When the electronic device opens the "WLAN” application, a WLAN list can be displayed, and the WLAN list can be used as a menu list in the embodiment of the present application.
  • the update of the menu list can be triggered when the electronic device detects a new WLAN network.
  • the electronic device adopts method 1 to update the menu list and broadcasts the menu list in the "WLAN" application as an example, and an exemplary description of the relevant user interface is given below:
  • Figures 7a-7e illustrate a set of exemplary user interfaces when the menu list in the "WLAN" application is updated.
  • the electronic device may sort the multiple menu items in the menu list according to the service sorting rule of the "WLAN” application, and the service sorting rule may be Put the unencrypted menu item before the encrypted menu item.
  • the menu item with strong "WLAN” network signal is placed before the menu item with weak signal, and the menu item with high security is placed in the same signal strength. before a less secure menu item.
  • the sorting rule of encrypted menu items reference may be made to the sorting rule of unencrypted menu items, which will not be repeated here.
  • the electronic device may also use other service sorting rules to sort the multiple menu items to obtain a menu list, which is not limited here.
  • the obtained menu list may refer to the user interface 81 shown in FIG. 7a.
  • the user interface 81 may include a menu list 810, which may be provided by the "WLAN" application. It is assumed that at this time, all menu items in the menu list 810 are displayed in the user interface 81, and all the menu items may include menu item 811-menu item 8110.
  • menu item 811 In the user interface 81, comparing the "WLAN" signal identification 8110 provided by the menu item 811 with the "WLAN” signal identification 8120 provided by the menu item 812, it can be seen that since the "WLAN" network provided by the menu item 811 is not encrypted, the menu Item 812 provides encryption for the "WLAN” network, so menu item 811 is placed before menu item 812. As can be seen from the "WLAN" signal identification 8150 provided by menu item 815 and the "WLAN” signal identification 8160 provided by menu item 816, since the "WLAN” network signal provided by menu item 811 is stronger than the "WLAN” network provided by menu item 812 , so menu item 815 is placed before menu item 816.
  • the electronic device may start to traverse the menu list 810, and at this time, the electronic device may display the user interface 82 shown in Figure 7b.
  • the focus menu item in the electronic device setting menu list 810 is the second menu item 812 .
  • the electronic device can broadcast the menu item 812: "two encrypted WLAN signal strength is full”.
  • 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 (eg, sliding operation), the electronic device can continue to traverse the menu list 810, at this time, the electronic device can display the user interface 83 shown in FIG. 7c.
  • the electronic device can display the user interface 83 shown in FIG. 7c.
  • the focus menu item of the menu list 810 has changed from the second menu item 812 to the third menu item 813.
  • the electronic device can broadcast the menu item 813: "Three encrypted WLAN signal strength is full”.
  • the electronic device detects a new WLAN network and can update the menu list 810 .
  • an updated menu list 820 may be displayed in the user interface 84. All menu items of the menu list 820 are displayed in the user interface 84 . Compared with the menu list 810, the menu list 820 has a menu item 814, a menu item 816, a menu item 817, and a menu item 818 that are invalid. Valid menu items are menu item 811-menu item 813, menu item 815, menu item 819, menu item 8110, and the newly added menu item is 821-menu item 824.
  • the electronic device may use these menu items as the front part of the menu list 820 .
  • These menu items are sorted according to the service sorting rule applied by the "WLAN" before updating, and the electronic device can retain the relative order of these menu items, and does not need to be re-sorted. That is, the electronic device can use menu item 811-menu item 813, menu item 815, menu item 819, menu item 8110, and newly added menu item 821-menu item 824 as the front part of the menu list 820.
  • the electronic device may sort these menu items according to the service sorting rule applied by "WLAN", and use 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 .
  • the electronic device may set the focused menu item to not change.
  • the focused menu item is still the menu item 813.
  • 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 items 813.
  • the focus menu item is changed multiple times Repeated broadcast, the electronic device may not automatically broadcast the menu item 813 .
  • the electronic device can automatically broadcast the focused menu item once: "The signal strength of the three encrypted WLAN is full. ".
  • the update of the menu list will not affect the user to quickly traverse the menu list, and the user can continue to operate the user interface to obtain the information related to the next menu item of the currently focused menu item.
  • the electronic device may begin to traverse the menu list 820, at which point the electronic device may display the user interface 85 as shown in FIG. 7e.
  • the focus menu item of the menu list 810 has changed from the third menu item 813 to the fourth menu item 815.
  • the electronic device can broadcast the menu item 815: "The signal strength of the five-encrypted WLAN is full".
  • the user can continue to operate the user interface to acquire the information related to the next menu item until the information related to the menu item that he needs is acquired.
  • menu items that have been traversed there will be no menu items that have not been traversed.
  • the user obtains the information related to the menu items that have not been traversed they will not go through the process of repeatedly traversing the same menu item many times.
  • the menu list can be quickly traversed to improve the user's sense of using the electronic device.
  • Application scenario 2 When the electronic device opens a communication application, a message list can be displayed, and the message list can be used as a menu list in the embodiment of the present application.
  • the update of the menu list can be triggered when the electronic device receives a new message.
  • the electronic device may adopt the menu list updating method provided by the embodiment of the present application to broadcast the menu list.
  • the electronic device adopts method 2 to update the menu list, and broadcasts the menu list in a certain communication application as an example, and an exemplary description of the relevant user interface is given below:
  • Figures 8a-8d illustrate a set of exemplary user interfaces when a menu list in a communication application is updated.
  • the electronic device may sort the multiple menu items in the menu list according to the service sorting rule of the communication application, and the service sorting rule may be based on the multiple menu items in the menu list.
  • the timestamps corresponding to the menu items are sorted. The later the timestamp is, the earlier the menu item is in the menu list.
  • the timestamp of a menu item refers to the time when the electronic device obtains the menu item.
  • the electronic device can use different business sorting rules to sort the multiple menu items in addition to sorting according to the time stamp to obtain a menu list, which is not performed here. limited.
  • the electronic device sorts multiple menu items according to the service sorting rule that the menu item is earlier in the menu list, the later the time stamp of the menu item is, the obtained menu list can refer to the user interface 91 shown in FIG. 8a. .
  • 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 item 911-menu item 916.
  • the timestamp 9110 corresponding to the menu item 911 is "08:20 am", which means that the electronic device acquired the menu item at 08:20 am.
  • the timestamp 9120 corresponding to the menu item 912 is “8:17 am”. Since the timestamp 9110 is later than the timestamp 9120 , the electronic device places the menu item 911 before the menu item 912 .
  • the electronic device can start to traverse the menu list 910, and at this time, the electronic device can display the user as shown in FIG. 8b. interface 92.
  • the focus menu item in the electronic device setting menu list 910 is the second menu item 912 .
  • the electronic device can start playing the menu item 912 of the newspaper: "ma 08:17 am picture".
  • the electronic device receives a new message and can update the menu list 910 .
  • the menu list 920 displayed in the user interface 93 can be obtained.
  • the newly added menu item 921 in the menu list 920 is 921 .
  • Valid menu items include menu item 911-menu item 916. Wherein menu item 911 -menu item 915 have been displayed in user interface 93 .
  • Menu item 916 is not displayed in user interface 93 , but may be displayed in user interface 93 .
  • the electronic device may retain the relative order of those menu items as the front portion in menu list 920 . That is, the electronic device can place the menu items 911 and 912 in 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 that in the menu list 910 .
  • the electronic device may add the menu items after the focus menu item in the menu list 910 among these menu items, and the electronic device may add these menu items together with the newly added menu items in the menu list 920 according to the service of the communication application. Sort by order. That is, the electronic device can sort the menu items 913-916 and the menu item 921 according to the service ordering 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 ordered as the latter part of the menu list 920 . That is, the electronic device may place the sorted menu items 913 to 916 and the menu item 921 after the menu items 911 and 912 to obtain the menu list 920 .
  • the electronic device can set the focused menu item to be unchanged, and set the focused menu item in the menu list 920 as the menu item 912 .
  • the electronic device may start to traverse the menu list 920, and at this time, the electronic device may display the user interface 94 as shown in FIG. 8d.
  • the focus menu item of the menu list changes from the second menu item 912 to the third menu item 921 .
  • the electronic device can broadcast the menu item 921: "Bai an unread message 08:30 a.m. file"
  • the user may continue to operate the user interface 85 to quickly traverse the menu list 920 . If there is an update, the new menu items will always be quickly traversed by the user.
  • Application scenario 3 For the menu list 810 provided by the aforementioned "WLAN" application, when the electronic device broadcasts menu item 812 without broadcasting menu item 811, and then broadcasts menu item 813, the electronic device detects a new WLAN List 810 is updated.
  • the electronic device may adopt the menu list updating method provided by the embodiment of the present application to broadcast the menu list.
  • the electronic device adopts method 3 to update the menu list, and broadcasts the menu list in the "WLAN" application as an example, and an exemplary description of the relevant user interface is given below:
  • an updated menu list 830 may be displayed in the user interface 86 , and all menu items in the menu list 830 are displayed in the user interface 91 .
  • the menu list 830 has invalid menu items including a menu item 813, a menu item 814, a menu item 816, a menu item 817, and a menu item 818.
  • Valid menu items include menu item 811, menu item 812, menu item 815, menu item 819, menu item 8110, and the newly added menu item is 831-menu item 835.
  • the electronic device may 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 may place the menu item 812 in the front portion of the menu list 830 .
  • the electronic device can sort the menu items that have not been broadcasted by the electronic device and the newly added menu items in the menu list 830 according to the service sorting rule of the communication application. That is, the electronic device can add menu item 811, menu item 812, menu item 815, menu item 819, menu item 8110, and the newly added menu item is 831-menu item 835 according to the time stamp of the menu item, the later the menu item is. Sort by the business ordering rule that is higher in the menu list. These menu items are ordered as the latter part of the menu list 830 .
  • the electronic device can place the sorted menu item 811, menu item 812, menu item 815, menu item 819, menu item 8110, and the newly added menu item 831-menu item 835 after the menu item 812 to obtain a menu list 830.
  • menu item 813 Since the focused menu item in menu list 810 , menu item 813 , does not exist in menu list 830 . And there is a valid menu item 812 that has been broadcast by the electronic device before the focus menu item of the old menu list, then the electronic device can set the first menu item in the new menu list 830 that is not the menu item before the focus menu item 813 of the old menu list, That is, the menu item 811 is the focus menu item.
  • the electronic device can automatically broadcast the focused menu item once: "one is connected to the WLAN signal strength is 2 bars”.
  • the user may continue to operate the user interface 86 to quickly traverse the menu list 830 .
  • FIG. 10 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 may have more or fewer components than those shown in the figures, may combine two or more components, or may have different component configurations.
  • the various components shown in the figures 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.
  • 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.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194 and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM Subscriber identification module
  • 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, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. 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.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify 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 then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the electronic device may broadcast the menu list through the speaker 170A.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • 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 (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • 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 realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application required for at least one function (such as a face recognition function, a fingerprint recognition function, a mobile payment function, etc.) and the like.
  • the storage data area may store data created during the use of the electronic device 100 (such as face information template data, fingerprint information template, etc.) and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to 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 intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing 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, the instruction to create a new short message is executed.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed 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 a touch operation 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 touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • the processor 110 may call the computer instructions stored in the internal memory 121, so that the electronic device 100 executes the menu list updating method in the embodiment of the present application.
  • FIG. 11 is an exemplary schematic flowchart of a method for updating a menu list in an embodiment of the present application:
  • the electronic device determines the focus menu item in the old menu list
  • the old menu list refers to the menu list before the update.
  • the electronic device may determine that the last menu item broadcast before the update of the old menu list is the focused menu item.
  • the old menu list may be the menu list 810 shown in FIG. 7c , and the electronic device may determine that the focused menu item in the menu list 810 is 813 .
  • the electronic device executes business update logic, and obtains a logic list
  • Logical list which refers to the collection of all menu items to be displayed
  • the business 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 can be understood that the update conditions for updating the menu list of different applications may be different.
  • the service update logic of the "WLAN” application may be to trigger the update of the menu list when the electronic device detects a new WLAN network.
  • the service update logic of the communication application may be to trigger the update of the menu list when the electronic device receives a new message.
  • the electronic device obtains an invalid list and a newly added list according to the old menu list and the logic list;
  • An invalidation list is a collection of invalidated menu items.
  • a new list is a collection of new menu items.
  • the electronic device obtains all menu items that exist in the old menu list but do not exist in the logical list according to the old menu list and the logical list, and obtains an invalidation list. It is also possible to obtain all newly added menu items that do not exist in the old menu list but exist in the logical list to obtain a newly added list.
  • the electronic device can match each menu item in the old menu list with the menu item in the logical list, and if a certain menu item does not match each menu item in the logical list, the electronic device can determine the menu item item is an invalid menu item. In this way, the electronic device can obtain a list of failures.
  • the electronic device can match each menu item in the logical list with a menu item in the old menu list, and if a certain menu item does not match every menu item in the old menu list, the electronic device can determine that the menu item is Added menu items. In this way, the electronic device can obtain the newly added list.
  • FIG. 12 shows a schematic diagram of the 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 shows a schematic diagram of the logic list A obtained when the electronic device executes the service update logic and updates the old menu list A.
  • the menu items in the logical list A may include data1, data2, data3, data5, data6, data7, and data8.
  • FIG. 12 shows a schematic diagram of the invalidation list A, which is obtained by the electronic device by comparing the old menu list A with the logical list A.
  • data4 exists in the old menu list A, but does not exist in the logical list A, so data4 is an invalid menu item in the invalid list A.
  • FIG. 12 shows a schematic diagram of the newly added list A.
  • the electronic device can compare the old menu list A with the logical list A to obtain that the menu items in the newly added list A are data5, data6, data7, and data8.
  • the electronic device obtains a new menu list according to the old menu list, the invalid list and the newly added list;
  • the new menu list refers to the updated menu list.
  • the electronic device may adopt different methods to obtain different new menu lists.
  • the different ways in which the electronic device obtains the new menu list are described in detail below:
  • FIG. 13 is a flow chart of obtaining a new menu list by the electronic device adopting Manner 1 in some embodiments.
  • steps S201-S203 The process is shown in FIG. 13 , including steps S201-S203.
  • steps S201-S203 in detail in conjunction with a set of schematic diagrams of obtaining a new menu list by means of the electronic device shown in FIG. 12 :
  • the electronic device obtains an old valid list according to the old menu list and the invalidation list
  • the old valid list refers to the collection of valid menu items.
  • the electronic device can remove all invalid menu items in the old menu list to obtain the old valid list. Specifically, the electronic device may match each invalid menu item in the invalid list with all menu items in the old menu list, and if they are the same, the invalid menu item may be removed from the old menu list to obtain Old valid list.
  • FIG. 12 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 may include data1, data2, data3.
  • the electronic device sorts the newly added list according to the business sorting rule, and obtains an ordered newly added list
  • the ordered new list refers to a collection of new menu items sorted according to business sorting rules.
  • the service sorting rule refers to a rule for sorting multiple menu items of an application by an electronic device.
  • the business ordering rules for different applications can be different.
  • the service ordering rule of the "WLAN” application may be to place the unencrypted menu item before the encrypted menu item, and the "WLAN" network signal in the unencrypted menu item is strong. If the signal strength is the same, the menu item with high security is placed before the menu item with low security.
  • the sorting rules of encrypted menu items please refer to the sorting rules of unencrypted menu items. It will not be repeated here.
  • the service sorting rule of the communication application may be sorting according to the timestamps corresponding to the multiple menu items. The later the timestamp is, the earlier the menu item is in the menu list.
  • the electronic device may sort the newly added lists according to the business sorting rules of the applications to obtain an ordered newly added list.
  • FIG. 12 shows a schematic diagram of the orderly 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.
  • the order of the menu items of the orderly added list A has been changed, and the order is data6, data5, data7, data8.
  • the electronic device obtains a new menu list according to the orderly added list and the old valid list.
  • the electronic device may place the ordered new list after the old valid list to obtain the new menu list.
  • a schematic diagram of the new menu list A is shown in (g) of FIG. 12 .
  • the electronic device can place the ordered new list A after the old valid list A to obtain the new menu list A.
  • the method 1 is adopted to obtain the menu list 820 .
  • FIG. 14 is a flowchart of obtaining a new menu list by the electronic device in Mode 2 in some embodiments.
  • steps S301-S303 The process is shown in FIG. 14 , including steps S301-S303.
  • steps S301-S303 in detail in conjunction with a set of schematic diagrams of obtaining a new menu list by means of the electronic device shown in FIG. 15 :
  • the electronic device obtains the old list before the focus and the old list after the focus according to the old menu list and the invalid list;
  • the old list before focus refers to the set of valid menu items before (including the focused menu item) the focused menu item in the old menu list.
  • the old list after focus refers to the set of valid menu items that follow the focused menu item in the old menu list.
  • the electronic device can remove the invalid menu items in these menu items to obtain the old list before the focus.
  • the electronic device can obtain all the menu items before the focus item menu item (including the focus menu item) from the old menu list, and then traverse these menu items.
  • the menu item is matched, and if the menu item is the same as a certain menu item in the invalid list, the electronic device can determine that the menu item is an invalid menu item and remove the menu item. Until these menu items are traversed, all invalid menu items are removed, and the old list before the focus is obtained.
  • the electronic device can remove the invalid menu item in the old menu list and obtain the old list before the focus.
  • FIG. 15 shows a schematic diagram of the old list B before the focus.
  • the pre-focus old list B is obtained by the electronic device according to the old menu list A shown in (a) of FIG. 15 and the invalidation list A shown in (b) of FIG. 15 .
  • the focus menu item in the old menu list A is data2, then data1 is the menu item before the focus menu item.
  • the invalidation menu item in invalidation list A is data4. Then the electronic device can determine that data1 and data2 are the menu items in the old list before the focus.
  • the electronic device may first obtain all menu items after the focused menu item from the old menu list, and then remove the invalid menu items among these menu items to obtain the old list after the focus. For this process, reference may be made to the description of the old list before the electronic device obtains the focus in the foregoing step S301 , which will not be repeated here.
  • FIG. 15 shows a schematic diagram of the old list B after the focus.
  • the post-focus old list B is obtained by the electronic device according to the old menu list A shown in (a) of FIG. 15 and the invalidation list A shown in (b) of FIG. 15 .
  • the electronic device acquires the menu items after the focus menu item, that is, data3 and data4. Because the invalidation menu item in invalidation list A is data4. Then the electronic device removes data4 and determines that data3 is the menu item in the old list B before the focus.
  • the electronic device obtains an ordered list after the focus by using the old list and the new list after the focus according to the business sorting rule;
  • the electronic device can sort all the menu items in the old list after the focus and the new list together according to the business sorting rule to obtain an ordered list after the focus.
  • the sorted list after focus is the sorted collection of all menu items.
  • FIG. 15 shows a schematic diagram of the list B after the ordered focus.
  • the electronic device may sort the old list B after the focus and the menu items in the newly added list A shown in (e) of FIG. 15 according to the service sorting rule. List B after getting ordered focus.
  • the electronic device obtains a new menu list according to the ordered list after the focus and the old list before the focus.
  • the electronic device may place the ordered post-focus list after the pre-focus old list to obtain a new menu list.
  • a schematic diagram of the new menu list B is shown in (g) of FIG. 15 .
  • the electronic device may place the ordered post-focus list B after the pre-focus old list B to obtain the new menu list B.
  • the method 2 is adopted to obtain the menu list 920 .
  • FIG. 16 is a flow chart of obtaining another new menu list by the electronic device adopting Mode 3 in other embodiments.
  • steps S401-S403. The process is shown in FIG. 16 , including steps S401-S403. The following is a detailed description of steps S401-S403 in conjunction with a set of schematic diagrams of obtaining a new menu list by means of the electronic device shown in FIG. 17 :
  • the electronic device obtains the old list that has been broadcast and the old list that has not been broadcast according to the old menu list and the invalid list;
  • Announced old list refers to the set of valid menu items that have been announced.
  • An unannounced old list is a collection of valid menu items that have not been broadcast.
  • the broadcasted old list refers to a set of valid menu items that have been broadcasted by the electronic device.
  • the electronic device can remove the invalid menu items in these menu items, and then determine the menu items that have been broadcasted in the remaining menu items to obtain the broadcasted old list.
  • the electronic device can set a broadcast identifier for each menu item in the list, and the broadcast identifier is used to distinguish whether the menu item is broadcast by the electronic device, for example, "0", "1" can be used As a broadcast identifier of a menu item, if the menu item has been broadcasted, the electronic device can set the broadcast identifier of the menu item to "0", otherwise, set it to "1".
  • the electronic device may first remove the invalid menu item from the old menu list. For this process, reference may be made to the description of removing the invalid menu item from the old menu list in the foregoing step S301, which will not be repeated here. Then, for all menu items in the old menu list after the invalid menu items are removed, the electronic device can determine the set of the broadcasted menu items in these menu items through the broadcast identifiers of these menu items, and obtain the broadcasted old list. And determine the set of menu items that have not been broadcasted among these menu items, and get the old list of not being broadcasted.
  • FIG. 17 shows a schematic diagram of the old list C that has been broadcast.
  • the broadcasted old list C is obtained by the electronic device according to the old menu list A shown in (a) in FIG. 17 and the invalidation list A shown in (b) in FIG. 17 .
  • the menu items that have been broadcasted are data2 and data3. Since the invalidation data in the invalidation list A is data4, the electronic device can determine that the menu items in the broadcasted old list C are data2 and data3.
  • the electronic device can remove the invalid menu items in these menu items, and then determine the menu items that have not been broadcasted in the remaining menu items, so as to obtain the old list that has not been broadcasted.
  • the electronic device can remove the invalid menu items in these menu items, and then determine the menu items that have not been broadcasted in the remaining menu items, so as to obtain the old list that has not been broadcasted.
  • FIG. 17 shows a schematic diagram in which the old list C is not broadcast.
  • the non-broadcast old list C is obtained by the electronic device according to the old menu list A shown in (a) in FIG. 17 and the invalidation list A shown in (b) in FIG. 15 .
  • the menu items that have not been broadcasted include data1 and data4. Since the invalidation data in the invalidation list A is data4, the electronic device may determine that the menu item in the old list C that is not broadcast is data1.
  • the electronic device obtains an ordered unbroadcast list by using the unbroadcast old list and the newly added list according to the business sorting rule;
  • the electronic device can sort all the menu items in the old unbroadcast list together with the newly added list according to the business sorting rule, so as to obtain an ordered unbroadcast list.
  • the ordered unannounced list is the ordered collection of all menu items.
  • FIG. 17 shows a schematic diagram of the ordered unbroadcast list C.
  • the electronic device may sort the menu items in the old unplayed list C and the newly added list A shown in (e) of FIG. 17 together according to the service sorting rule. Get an ordered unbroadcast list C.
  • the electronic device obtains a new menu list according to the ordered unbroadcast list and the broadcast old list.
  • the electronic device can place the ordered unplayed list after the played old list to obtain a new menu list.
  • FIG. 17 shows a schematic diagram of the new menu list C.
  • the electronic device can obtain the new menu list C by placing the ordered list C that has not been broadcast after the old list C that has been broadcast. That is, the new menu list C consists of
  • the method 3 is adopted to obtain the menu list 830 .
  • the electronic device sets the focus menu item in the new menu list according to the focus menu item in the old menu list;
  • FIG. 18 shows a set of schematic diagrams of the electronic device setting the focus menu item in the new menu list.
  • the electronic device determines that the focused menu item in the old menu list is a valid menu item. 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.
  • data3 in the old menu list is the focused menu item.
  • the focused menu item is not an invalid menu item, that is, the focused 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, which is data3.
  • the electronic device may also set the focused menu item in the new menu list in a different way. different:
  • the electronic device determines the new menu list in the aforementioned manner 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.
  • the electronic device can 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.
  • data4 in the old menu list is the focused menu item.
  • the focused menu item is an invalid menu item, that is, the focused 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.
  • the electronic device can set the first menu item in the new menu list as the focus menu item.
  • data3 in the old menu list is the focused menu item.
  • the focus menu item is an invalid menu item, and all the 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 data4, is the focused menu item.
  • 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.
  • the electronic device can 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.
  • data4 in the old menu list is the focused menu item.
  • the focused 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.
  • the electronic device may set the first menu item in the new menu list as the focused menu item.
  • the electronic device determines the new menu list in the aforementioned manner 2. There are 2 different ways to set the focus menu item in the new menu list:
  • the electronic device may set the focused menu item in the new menu list according to whether there is a valid menu item before the focused menu item in the old menu list.
  • Setting method 1 If there is a valid menu item before the focus menu item in the old menu list. Then the electronic device can set the first valid menu item before the focused menu item in the old menu list as the focused menu item in the new menu list.
  • data4 in the old menu list is the focus menu item, and the focus menu item is an invalid menu item.
  • data2 is an invalid menu item.
  • data1 and data3 are valid menu items. Then, the electronic device can set the first valid menu item before the focus menu item of the old menu list, that is, data3, as the focus menu item in the new menu list.
  • the electronic device can set the first menu item in the new menu list as the focus menu item.
  • the electronic device may also set the menu item in the new menu list that is not the first menu item before the focus menu item in the old menu list as the focus menu item.
  • data4 in the old menu list is the focus menu item, and the focus menu item is an invalid menu item.
  • data2 is an invalid menu item.
  • 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 of the old menu list, that is, data7, to be the focus menu item in the new menu list.
  • the electronic device can set the first menu item in the new menu list as the focus menu item.
  • (h) in FIG. 18 will not be repeated here.
  • the electronic device determines the new menu list in the aforementioned manner 3.
  • the electronic device may set the focused menu item in the new menu list according to whether there is a valid menu item that has been broadcasted by the electronic device before the focused menu item in the old menu list.
  • Setting method 1 If the focus menu item in the old menu list has a valid menu item that has been broadcast by the electronic device before. Then the electronic device can set the first valid menu item that has been broadcasted by the electronic device before the focused menu item in the old menu list as the focused menu item in the new menu list.
  • data4 in the old menu list is the focus menu item, and the focus menu item is an invalid 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 broadcasted by the electronic device before the focus menu item of the old menu list, that is, data3, as the focus menu item in the new menu list.
  • the electronic device can set the first menu item in the new menu list as the focus menu item.
  • the electronic device may also set the menu item in the new menu list before the first menu item that is not the focus menu item of the old menu list as the focus menu item.
  • data4 in the old menu list is the focus menu item, and the focus menu item is an invalid 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 menu item in the new menu list that is not before the focus menu item of the old menu list, that is, data7, to be the focus menu item in the new menu list.
  • the electronic device can set the first menu item in the new menu list as the focus menu item.
  • (k) in FIG. 18 which will not be repeated here.
  • the electronic device will automatically broadcast the focused menu item once. If the focused menu item has been broadcast by the electronic device before the old menu list is updated, the electronic device will not automatically broadcast the focused menu item.
  • the electronic device can set a broadcast identifier for each menu item in the list, and the broadcast identifier is used to distinguish whether the menu item is broadcast by the electronic device, for example, "0", "1" can be used As a broadcast identifier of a menu item, if the menu item has been broadcasted, the electronic device can set the broadcast identifier of the menu item to "0", otherwise, set it to "1". For a new menu list, the electronic device may set the broadcast flags of the newly added menu items to "1".
  • the electronic device can judge whether the focused menu item has been broadcasted by the electronic device through the broadcast identifier of the focused menu item. If it has not been broadcasted by the electronic device, the electronic device will automatically broadcast the focused menu item once. If it has been broadcasted by the electronic device, the electronic device will not automatically broadcast the focused menu item.
  • the electronic device when setting the focus menu item in the new menu list according to the focus menu item in the old menu list, may also use the index value of the menu item to uniquely identify a menu item, and the old menu item can be used to identify a menu item.
  • the index value of the focus menu item in the list is used to determine the index value of the focus menu item in the new menu list, and then the menu item corresponding to the index value in the new menu list is set as the focus menu item.
  • the electronic device may not automatically broadcast the focused menu item in the new menu list.
  • the electronic device can automatically broadcast the focused menu item in the new menu item list once.
  • the electronic device displays the new menu list in the user interface.
  • the newly added menu item is displayed after the focused menu item.
  • the electronic device can obtain the new menu list in the aforementioned three ways. This new menu list is then displayed in the user interface. In each new menu item obtained in each way, the new menu item is displayed after the focused menu item in the new menu list.
  • the new menu list obtained in way 1 it may be the menu list 820 in the user interface 84 shown in FIG. 7d.
  • the focused menu item in the menu list 820 is menu item 813 .
  • the newly added menu items in the menu list 820 include a menu item 821 to a menu item 824 , and these newly added menu items are all displayed after the focused menu item 813 .
  • the new menu list obtained in way 2 it may be the menu list 920 in the user interface 93 shown in FIG. 8c.
  • the focused menu item in the menu list 920 is menu item 912 .
  • the newly added menu items in the menu list 820 include a menu item 921 , and the newly added menu item is displayed after the focused menu item 912 .
  • the new menu list for approach 3 may be menu list 830 in user interface 86 shown in FIG. 9 .
  • the focused menu item in the menu list 830 is the menu item 811 .
  • the newly added menu items in the menu list 830 include a menu item 831 to a menu item 835 , and these newly added menu items are all displayed after the focused menu item 811 .
  • step S101 only needs to be executed before step S105.
  • the menu list update method provided by the embodiment of the present application, when the menu list is updated, the menu items following the focus menu item in the new menu list are not broadcast by the electronic device.
  • the menu item before the focused menu item if the electronic device has not broadcast the menu item, the menu item will not be arranged among the menu items that have been broadcasted by the electronic device. In this way, when the electronic device traverses the updated menu list, unnecessary repeated broadcasts will not be caused, and the menu list can be quickly traversed to find the menu item expected by the user, thereby improving the user's experience of using the electronic device.
  • 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.
  • the phrases “in determining" or “if detecting (the stated condition or event)” can be interpreted to mean “if determining" or “in response to determining" or “on detecting (the stated condition or event)” or “in response to the detection of (the stated condition or event)”.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • 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, all or part of the processes or functions described in the embodiments of the present application are generated.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state drives), and the like.
  • the process can be completed by instructing the relevant hardware by a computer program, and the program can be stored in a computer-readable storage medium.
  • the program When the program is executed , which may include the processes of the foregoing method embodiments.
  • the aforementioned storage medium includes: ROM or random storage memory RAM, magnetic disk or optical disk and other mediums that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

一种菜单列表更新方法。在该方法中,对于更新后的菜单列表,当电子设备显示该菜单列表时,该菜单列表中的新增菜单项始终显示在焦点菜单项之后。实施本申请提供的技术方案,电子设备可以快速遍历该菜单列表。这样,视障用户可以快速找到期望的菜单项,增加视障用户对电子设备的使用体验感。

Description

一种菜单列表更新方法和电子设备
本申请要求于2021年02月27日提交中国专利局、申请号为202110221598.7、申请名称为“一种菜单列表更新方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端及通信技术领域,尤其涉及一种菜单列表更新方法和电子设备。
背景技术
随着各大厂商对电子设备无障碍功能的不断改进和完善,越来越多的视障用户开始使用电子设备。电子设备开启无障碍功能后,可以播报用户界面中显示的内容。用户可以通过倾听播报内容,获取相关信息。
对于用户界面上的菜单列表,用户可以按照某一种操作电子设备的方式遍历菜单列表,获取到菜单列表中全部的内容。例如,用户获取菜单列表的第一个菜单项中显示的内容,用户可以向下滑动用户界面以获取第二个菜单项中显示的内容,再向下滑动用户界面以获取第三个菜单项中显示的内容。以此类推,用户可以通过向下滑动用户界面这一种操作电子设备的方式获取到该菜单列表中显示的全部内容。
现有技术中,对于可以更新的菜单列表,更新后的菜单列表中会有一些新增菜单项。其中某个新增菜单项可以排列在电子设备已经播报过的一些菜单项的中间。假设用户需要获取该新增菜单项,则当用户继续通过向下滑动用户界面这一种操作电子设备的方式遍历该更新后的菜单列表时,会导致重复播报一些电子设备已经播报过的菜单项,电子设备无法快速遍历菜单列表,使得用户对电子设备的使用体验感不佳。
发明内容
本申请提供了一种菜单列表更新方法和电子设备,菜单列表更新后,可以使电子设备快速遍历菜单列表,找到期望的菜单项,提高用户对电子设备的使用体验感。
第一方面,本申请提供了一种菜单列表更新方法,该方法包括:电子设备显示旧菜单列表;该电子设备更新该旧菜单列表,得到新菜单列表;该电子设备根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项;该电子设备显示该新菜单列表;在该新菜单列表中,新增菜单项不显示在该新菜单列表中的焦点菜单项之前;该新增菜单项是指在该旧菜单列表中不存在而在该新菜单列表中存在的菜单项。
在上述实施例中,更新菜单列表时,新增菜单项可以作为焦点菜单项,也可以显示在焦点菜单项之后。电子设备可以快速遍历到这些新增菜单项,这样,当用户遍历该更新后的菜单列表时,可以快速遍历完所有的菜单项,不会导致不必要的重复播报,找到用户期望的菜单项,提高用户对电子设备的使用体验感。
结合第一方面的一些实施例,在一些实施例中,该电子设备显示该新菜单列表,具体包括:该电子设备显示该新菜单列表;在该新菜单列表中,根据业务排序规则进行排序后的新增菜单项显示在有效菜单项之后;该有效菜单项是指既存在于该旧菜单列表也存在于该新菜 单列表中的菜单项。
在上述实施例中,有效菜单项处于新菜单列表的前面部分,新增菜单项处于新菜单列表的后面部分。新增菜单项不会被显示在已经被电子设备播报过的菜单项之间,当电子设备遍历到这些新增菜单项,不会导致不必要的重复播报。这样,电子设备可以快速遍历该新菜单列表,找到用户期望的菜单项。
结合第一方面的一些实施例,在一些实施例中,该方法还包括:该电子设备将有序新增列表置于旧有效列表之后,得到该新菜单列表;该旧有效列表是指有效菜单项的集合;该有序新增列表是指根据该业务排序规则进行排序后的新增菜单项的集合。
结合第一方面的一些实施例,在一些实施例中,其特征在于:当该旧菜单列表中的焦点菜单项是失效菜单项时,在该新菜单列表中,该旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在该旧菜单列表中的焦点菜单项之前的有效菜单项之后;当该旧菜单列表中的焦点菜单项是有效菜单项时,在该新菜单列表中,该旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在该旧菜单列表中的焦点菜单项以及该旧菜单列表中的焦点菜单项之前的有效菜单项之后。
在上述实施例中,旧菜单列表中的焦点菜单项之后的有效菜单项可以与新增菜单项一起根据业务排序规则进行排序,这样,新菜单列表中的焦点菜单项之后的所有菜单项看起来更加有序,用户期望的菜单项越有可能靠近焦点菜单项。这样,电子设备可以更加快速的找到用户期望的菜单项。
结合第一方面的一些实施例,在一些实施例中,该方法还包括:该电子设备更新该旧菜单列表,得到新菜单列表包括:当该旧菜单列表中的焦点菜单项是失效菜单项时,该电子设备将有序焦点后列表置于焦点前旧列表之后,得到该新菜单列表;该有序焦点后列表是指该旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项的集合;该焦点前旧列表是指该旧菜单列表中的焦点菜单项之前的有效菜单项的集合;当该旧菜单列表中的焦点菜单项是有效菜单项时,该电子设备将有序焦点后列表置于焦点前旧列表之后,得到该新菜单列表;该有序焦点后列表是指该旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项的集合;该焦点前旧列表是指该旧菜单列表中的焦点菜单项以及该旧菜单列表中的焦点菜单项之前的有效菜单项的集合。
结合第一方面的一些实施例,在一些实施例中,该电子设备显示该新菜单列表,具体包括:该电子设备显示该新菜单列表;在该新菜单列表中,该旧菜单列表中的没有被该电子设备播报过的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在该旧菜单列表中的已经被该电子设备播报过的有效菜单项之后;
在上述实施例中,新菜单列表中,被电子设备播报过的菜单项在焦点菜单项之前,焦点菜单项之后的菜单项都是电子设备没有播报过的菜单项,这些没有被电子设备播报过的菜单项是按照业务排序规则进行过排序的,这样,电子设备可以快速遍历完该新菜单列表,不会导致重复播报,可以更快的找到用户期望的菜单项,提升用户对电子设备的使用体验感。
结合第一方面的一些实施例,在一些实施例中,该方法还包括:该电子设备将有序未播报列表置于已播报旧列表之后,得到该新菜单列表;该有序未播报列表是指该旧菜单列表中的没有被该电子设备播报过的有效菜单项与新增菜单项根据该业务排序规则进行排序后的所有菜单项的集合;该已播报旧列表是指该已经被该电子设备播报过的有效菜单项的集合。
结合第一方面的一些实施例,在一些实施例中,该电子设备根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项,具体包括:当该电子设备确定该旧菜单列表中的焦点菜单项是非失效菜单项时,该电子设备设置该新菜单列表中的焦点菜单项与该旧菜单列中的焦点菜单项相同;当该电子设备确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之后有非失效菜单项时,该电子设备设置该旧菜单列表中的焦点菜单项之后的第一个非失效菜单项为该新菜单列表中的焦点菜单项;当该电子设备确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之后没有非失效菜单项时,该电子设备设置该新菜单列表中的第一个菜单项为焦点菜单项。
在上述实施例中,电子设备根据旧菜单列表中的焦点菜单项之后是否有有效菜单项来设置新菜单列表中的焦点菜单项。可以快速设置新菜单列表中的焦点菜单项,且新菜单列表中,被电子设备播报过的焦点菜单项,都显示在焦点菜单项之前。电子设备从该焦点菜单项开始播报该新菜单列表时,可以更快速的遍历完该新菜单列表。
结合第一方面的一些实施例,在一些实施例中,该电子设备根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项,具体包括:当该电子设备确定该旧菜单列表中的焦点菜单项是有效菜单项时,该电子设备设置该新菜单列表中的焦点菜单项与该旧菜单列中的焦点菜单项相同;当该电子设备确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前有有效菜单项时,该电子设备设置该旧菜单列表中的焦点菜单项之前的第一个有效菜单项为新菜单列表中的焦点菜单项;当该电子设备确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前没有非失效菜单时,该电子设备设置该新菜单列表中的第一个菜单项为焦点菜单项。
在上述实施例中,在上述实施例中,电子设备根据旧菜单列表中的焦点菜单项之前是否有有效菜单项来设置新菜单列表中的焦点菜单项。可以快速设置新菜单列表中的焦点菜单项,且新菜单列表中,被电子设备播报过的焦点菜单项,都显示在焦点菜单项之前。电子设备从该焦点菜单项开始播报该新菜单列表时,可以更快速的遍历完该新菜单列表。
结合第一方面的一些实施例,在一些实施例中,当该电子设备确定该旧菜单列表中的焦点菜单项是有效菜单项时,该电子设备设置该新菜单列表中的焦点菜单项与该旧菜单列中的焦点菜单项相同;当该电子设备确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前有有效菜单项时,该电子设备设置该新菜单列表中,第一个不是该旧菜单列表中的焦点菜单项之前的菜单项为该焦点菜单项;当该电子设备确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前没有非失效菜单时,该电子设备设置该新菜单列表中的第一个菜单项为焦点菜单项。
在上述实施例中,电子设备根据旧菜单列表中的焦点菜单项之前是否有有效菜单项来设置新菜单列表中的焦点菜单项。可以快速设置新菜单列表中的焦点菜单项,且新菜单列表中,被电子设备播报过的焦点菜单项,都显示在焦点菜单项之前。电子设备从该焦点菜单项开始播报该新菜单列表时,可以更快速的遍历完该新菜单列表。
结合第一方面的一些实施例,在一些实施例中,该电子设备根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项,具体包括:当该电子设备确定该旧菜单列表中的焦点菜单项是有效菜单项时,该电子设备设置该新菜单列表中的焦点菜单项与该旧菜单列中的焦点菜单项相同;当该电子设备确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前有已经被该电子设备播报过的有效菜单项时,该电子设备设置该旧菜单列表中的焦点菜单项之前的第一个已经被电子设备播报过的有效菜单项为该新菜 单列表中的焦点菜单项;当该电子设备确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前没有已经被该电子设备播报过的有效菜单项时,该电子设备设置该新菜单列表中的第一个菜单项为焦点菜单项。
在上述实施例中,电子设备根据旧菜单列表中的焦点菜单项之前是否有有效菜单项来设置新菜单列表中的焦点菜单项。可以快速设置新菜单列表中的焦点菜单项,且新菜单列表中,被电子设备播报过的焦点菜单项,都显示在焦点菜单项之前。电子设备从该焦点菜单项开始播报该新菜单列表时,可以更快速的遍历完该新菜单列表。
结合第一方面的一些实施例,在一些实施例中,该电子设备根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项,具体包括:当该电子设备确定该旧菜单列表中的焦点菜单项是有效菜单项时,该电子设备设置该新菜单列表中的焦点菜单项与该旧菜单列中的焦点菜单项相同;当该电子设备确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表的焦点菜单项之前有已经被电子设备播报过的有效菜单项时,该电子设备设置该新菜单列表中,第一个不是该旧菜单列表中的焦点菜单项之前的菜单项为焦点菜单项;当该电子设备确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前没有已经被该电子设备播报过的该有效菜单项时,该电子设备设置该新菜单列表中的第一个菜单项为焦点菜单项。
在上述实施例中,电子设备根据旧菜单列表中的焦点菜单项之前是否有有效菜单项来设置新菜单列表中的焦点菜单项。可以快速设置新菜单列表中的焦点菜单项,且新菜单列表中,被电子设备播报过的焦点菜单项,都显示在焦点菜单项之前。电子设备从该焦点菜单项开始播报该新菜单列表时,可以更快速的遍历完该新菜单列表。
结合第一方面的一些实施例,在一些实施例中,该方法还包括:当该新菜单项列表中的焦点菜单项在该旧菜单列表更新前,没有被该电子设备播报过时,该电子设备自动播报一次该新菜单项列表中的焦点菜单项;当该新菜单项列表中的焦点菜单项在该旧菜单列表更新前,已经被该电子设备播报过时,该电子设备不自动播报该新菜单项列表中的焦点菜单项。
在上述实施例中,电子设备不会自动播报已经被电子设备播报过的焦点菜单项,减少了不必要的重复播报。当菜单列表频繁更新时,可以避免多次进行重复播报的情况。电子设备会自动播报没有被电子设备播报过的焦点菜单项,防止电子设备遗漏播报菜单项。
结合第一方面的一些实施例,在一些实施例中,该方法还包括:该电子设备自动播报一次该新菜单项列表中的焦点菜单项。
在上述实施例中,电子设备不用去判断焦点菜单项是否被电子设备播报过,直接设置自动播报该焦点菜单项,防止电子设备遗漏播报焦点菜单项。
结合第一方面的一些实施例,在一些实施例中,该方法还包括:该电子设备不自动播报该新菜单项列表中的焦点菜单项。
在上述实施例中,电子设备不用去判断焦点菜单项是否被电子设备播报过,直接设置不会自动播报该焦点菜单项,减少了不必要的重复播报。当菜单列表频繁更新时,可以避免大量重复播报。
第二方面,本申请实施例提供了一种电子设备,该电子设备包括:一个或多个处理器和存储器;该存储器与该一个或多个处理器耦合,该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令,该一个或多个处理器调用该计算机指令以使得该第一电子设备执行:显示旧菜单列表;更新该旧菜单列表,得到新菜单列表;根据该旧菜单列表中的焦点 菜单项,设置该新菜单列表中的焦点菜单项;显示该新菜单列表;在该新菜单列表中,新增菜单项不显示在该新菜单列表中的焦点菜单项之前;该新增菜单项是指在该旧菜单列表中不存在而在该新菜单列表中存在的菜单项。
在上述实施例中,更新菜单列表时,新增菜单项可以作为焦点菜单项,也可以显示在焦点菜单项之后。电子设备可以快速遍历到这些新增菜单项,这样,当用户遍历该更新后的菜单列表时,可以快速遍历完所有的菜单项,不会导致不必要的重复播报,找到用户期望的菜单项,提高用户对电子设备的使用体验感。
结合第二方面的一些实施例,在一些实施例中,显示该新菜单列表,具体包括:显示该新菜单列表;在该新菜单列表中,根据业务排序规则进行排序后的新增菜单项显示在有效菜单项之后;该有效菜单项是指既存在于该旧菜单列表也存在于该新菜单列表中的菜单项。
结合第二方面的一些实施例,在一些实施例中,该更新该旧菜单列表,得到新菜单列表包括:将有序新增列表置于旧有效列表之后,得到该新菜单列表;该旧有效列表是指该有效菜单项的集合;该有序新增列表是指根据该业务排序规则进行排序后的新增菜单项的集合。
结合第二方面的一些实施例,在一些实施例中,其特征在于:当该旧菜单列表中的焦点菜单项是失效菜单项时,在该新菜单列表中,该旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在该旧菜单列表中的焦点菜单项之前的有效菜单项之后;当该旧菜单列表中的焦点菜单项是有效菜单项时,在该新菜单列表中,该旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在该旧菜单列表中的焦点菜单项以及该旧菜单列表中的焦点菜单项之前的有效菜单项之后。
结合第二方面的一些实施例,在一些实施例中,该更新该旧菜单列表,得到新菜单列表包括:该更新该旧菜单列表,得到新菜单列表包括:当该旧菜单列表中的焦点菜单项是失效菜单项时,该将有序焦点后列表置于焦点前旧列表之后,得到该新菜单列表;该有序焦点后列表是指该旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项的集合;该焦点前旧列表是指该旧菜单列表中的焦点菜单项之前的有效菜单项的集合;当该旧菜单列表中的焦点菜单项是有效菜单项时,该电子设备将有序焦点后列表置于焦点前旧列表之后,得到该新菜单列表;该有序焦点后列表是指该旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项的集合;该焦点前旧列表是指该旧菜单列表中的焦点菜单项以及该旧菜单列表中的焦点菜单项之前的有效菜单项的集合。
结合第二方面的一些实施例,在一些实施例中,显示该新菜单列表,具体包括:显示该新菜单列表;在该新菜单列表中,该旧菜单列表中的没有被播报过的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在该旧菜单列表中的已经被播报过的有效菜单项之后。
结合第二方面的一些实施例,在一些实施例中,该方法还包括:将有序新增列表置于旧有效列表之后,得到该新菜单列表;该旧有效列表是指有效菜单项的集合;该有序新增列表是指根据该业务排序规则进行排序后的新增菜单项的集合。
结合第二方面的一些实施例,在一些实施例中,该方法还包括:将有序未播报列表置于已播报旧列表之后,得到该新菜单列表;该有序未播报列表是指该旧菜单列表中的没有被该电子设备播报过的有效菜单项与新增菜单项根据该业务排序规则进行排序后的所有菜单项的集合;该已播报旧列表是指该已经被该电子设备播报过的有效菜单项的集合。
结合第二方面的一些实施例,在一些实施例中,根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项,具体包括:当确定该旧菜单列表中的焦点菜单项是非失效菜单项时,设置该新菜单列表中的焦点菜单项与该旧菜单列中的焦点菜单项相同;当确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之后有非失效菜单项时,设置该旧菜单列表中的焦点菜单项之后的第一个非失效菜单项为该新菜单列表中的焦点菜单项;当确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之后没有非失效菜单项时,设置该新菜单列表中的第一个菜单项为焦点菜单项。
结合第二方面的一些实施例,在一些实施例中,根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项,具体包括:当确定该旧菜单列表中的焦点菜单项是有效菜单项时,设置该新菜单列表中的焦点菜单项与该旧菜单列中的焦点菜单项相同;当确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前有有效菜单项时,设置该旧菜单列表中的焦点菜单项之前的第一个有效菜单项为新菜单列表中的焦点菜单项;当确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前没有非失效菜单时,该新菜单列表中的第一个菜单项为焦点菜单项。
结合第二方面的一些实施例,在一些实施例中,根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项,具体包括:当确定该旧菜单列表中的焦点菜单项是有效菜单项时,设置该新菜单列表中的焦点菜单项与该旧菜单列中的焦点菜单项相同;当确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前有有效菜单项时,设置该新菜单列表中,第一个不是该旧菜单列表中的焦点菜单项之前的菜单项为该焦点菜单项;当确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前没有非失效菜单时,设置该新菜单列表中的第一个菜单项为焦点菜单项。
结合第二方面的一些实施例,在一些实施例中,根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项,具体包括:当确定该旧菜单列表中的焦点菜单项是有效菜单项时,设置该新菜单列表中的焦点菜单项与该旧菜单列中的焦点菜单项相同;当确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前有已经被播报过的有效菜单项时,设置该旧菜单列表中的焦点菜单项之前的第一个已经被播报过的有效菜单项为该新菜单列表中的焦点菜单项;当确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前没有已经被播报过的有效菜单项时,设置该新菜单列表中的第一个菜单项为焦点菜单项。
结合第二方面的一些实施例,在一些实施例中,根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项,具体包括:当确定该旧菜单列表中的焦点菜单项是有效菜单项时,设置该新菜单列表中的焦点菜单项与该旧菜单列中的焦点菜单项相同;当确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表的焦点菜单项之前有已经被播报过的有效菜单项时,设置该新菜单列表中,第一个不是该旧菜单列表中的焦点菜单项之前的菜单项为焦点菜单项;当确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前没有已经被该播报过的该有效菜单项时,设置该新菜单列表中的第一个菜单项为焦点菜单项。
结合第二方面的一些实施例,在一些实施例中,该方法还包括:当该新菜单项列表中的焦点菜单项在该旧菜单列表更新前,没有被播报过时,自动播报一次该新菜单项列表中的焦点菜单项;当该新菜单项列表中的焦点菜单项在该旧菜单列表更新前,已经被播报过时,不自动播报该新菜单项列表中的焦点菜单项。
结合第二方面的一些实施例,在一些实施例中,该方法还包括:自动播报一次该新菜单项列表中的焦点菜单项。
结合第二方面的一些实施例,在一些实施例中,该方法还包括:不自动播报该新菜单项列表中的焦点菜单项。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括:显示模块,用于显示旧菜单列表;更新模块,用于更新该旧菜单列表,得到新菜单列表;设置模块,用于根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项;该显示模块还用于显示该新菜单列表;在该新菜单列表中,新增菜单项不显示在该新菜单列表中的焦点菜单项之前;该新增菜单项是指在该旧菜单列表中不存在而在该新菜单列表中存在的菜单项。
在上述实施例中,更新菜单列表时,新增菜单项可以作为焦点菜单项,也可以显示在焦点菜单项之后。电子设备可以快速遍历到这些新增菜单项,这样,当用户遍历该更新后的菜单列表时,可以快速遍历完所有的菜单项,不会导致不必要的重复播报,找到用户期望的菜单项,提高用户对电子设备的使用体验感。
结合第三方面的一些实施例,在一些实施例中,该显示模块还用于显示该新菜单列表,具体包括:该显示模块显示该新菜单列表;在该新菜单列表中,根据业务排序规则进行排序后的新增菜单项显示在有效菜单项之后;该有效菜单项是指既存在于该旧菜单列表也存在于该新菜单列表中的菜单项。
结合第三方面的一些实施例,在一些实施例中,该显示模块还用于显示该新菜单列表,具体包括:该显示模块显示该新菜单列表;当该旧菜单列表中的焦点菜单项是失效菜单项时,在该新菜单列表中,该旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在该旧菜单列表中的焦点菜单项之前的有效菜单项之后;当该旧菜单列表中的焦点菜单项是有效菜单项时,在该新菜单列表中,该旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在该旧菜单列表中的焦点菜单项以及该焦点菜单项之前的有效菜单项之后。
结合第三方面的一些实施例,在一些实施例中,该显示模块还用于显示该新菜单列表,具体包括:该显示模块显示该新菜单列表;在该新菜单列表中,该旧菜单列表中的没有被播报过的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在该旧菜单列表中的已经被该电子设备播报过的有效菜单项之后。
结合第三方面的一些实施例,在一些实施例中,设置模块,用于根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项,具体包括:当该设置模块确定该旧菜单列表中的焦点菜单项是非失效菜单项时,该设置模块设置该新菜单列表中的焦点菜单项与该旧菜单列中的焦点菜单项相同;当该设置模块确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之后有非失效菜单项时,设置该旧菜单列表中的焦点菜单项之后的第一个非失效菜单项为该新菜单列表中的焦点菜单项;当该设置模块确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之后没有非失效菜单项时,设置该新菜单列表中的第一个菜单项为焦点菜单项。
结合第三方面的一些实施例,在一些实施例中,设置模块,用于根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项,具体包括:当该设置模块确定该旧菜单列表中的焦点菜单项是有效菜单项时,设置该新菜单列表中的焦点菜单项与该旧菜单列中的焦点菜单项相同;当该设置模块确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单 列表中的焦点菜单项之前有有效菜单项时,设置该旧菜单列表中的焦点菜单项之前的第一个有效菜单项为新菜单列表中的焦点菜单项;当该设置模块确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前没有非失效菜单时,该新菜单列表中的第一个菜单项为焦点菜单项。
结合第三方面的一些实施例,在一些实施例中,设置模块,用于根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项,具体包括:当该设置模块确定该旧菜单列表中的焦点菜单项是有效菜单项时,设置该新菜单列表中的焦点菜单项与该旧菜单列中的焦点菜单项相同;当该设置模块确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前有有效菜单项时,设置该新菜单列表中,第一个不是该旧菜单列表中的焦点菜单项之前的菜单项为该焦点菜单项;当该设置模块确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前没有非失效菜单时,设置该新菜单列表中的第一个菜单项为焦点菜单项。
结合第三方面的一些实施例,在一些实施例中,设置模块,用于根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项,具体包括:当该设置模块确定该旧菜单列表中的焦点菜单项是有效菜单项时,设置该新菜单列表中的焦点菜单项与该旧菜单列中的焦点菜单项相同;当该设置模块确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前有已经被播报过的有效菜单项时,设置该旧菜单列表中的焦点菜单项之前的第一个已经被播报过的有效菜单项为该新菜单列表中的焦点菜单项;当该设置模块确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前没有已经被播报过的有效菜单项时,设置该新菜单列表中的第一个菜单项为焦点菜单项。
结合第三方面的一些实施例,在一些实施例中,设置模块,用于根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项,具体包括:当该设置模块确定该旧菜单列表中的焦点菜单项是有效菜单项时,设置该新菜单列表中的焦点菜单项与该旧菜单列中的焦点菜单项相同;当该设置模块确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表的焦点菜单项之前有已经被播报过的有效菜单项时,设置该新菜单列表中,第一个不是该旧菜单列表中的焦点菜单项之前的菜单项为焦点菜单项;当该设置模块确定该旧菜单列表中的焦点菜单项是失效菜单项,且该旧菜单列表中的焦点菜单项之前没有已经被该播报过的该有效菜单项时,设置该新菜单列表中的第一个菜单项为焦点菜单项。
第四方面,本申请实施例提供了一种芯片系统,该芯片系统应用于电子设备,该芯片系统包括一个或多个处理器,该处理器用于调用计算机指令以使得该电子设备执行如第一方面以及第一方面中任一个可能的实现方式描述的方法。
第五方面,本申请实施例提供了一种包含指令的计算机程序产品,当该计算机程序产品在电子设备上运行时,使得该电子设备执行如第一方面以及第一方面中任一个可能的实现方式描述的方法。
第六方面,本申请实施例提供了一种计算机可读存储介质,包括指令,当该指令在电子设备上运行时,使得该电子设备执行如第一方面以及第一方面中任一个可能的实现方式描述的方法。
可以理解地,上述第二方面和第三方面提供的电子设备、第四方面提供的芯片系统、第五方面提供的计算机程序产品和第六方面提供的计算机存储介质均用于执行本申请实施例所提供的方法。因此,其所能达到的有益效果可参考对应方法中的有益效果,此处不再赘述。
附图说明
图1是本申请实施例提供的电子设备开启无障碍功能中的屏幕朗读功能的示例性用户界面;
图2是本申请实施例提供的一个菜单列表的示意图;
图3是本申请实施例提供的菜单列表中的菜单项成为焦点菜单项的示意图;
图4是一种方案中电子设备播报菜单列表的一组示例性用户界面;
图5是一种方案中更新菜单列表的示例性流程图;
图6是本申请实施例提供的菜单列表更新方法中的一组示例性用户界面;
图7a-图7e是本申请实施例提供的“WLAN”应用中菜单列表更新时的一组示例性用户界面;
图8a-图8d是本申请实施例提供的通讯应用中菜单列表更新时的一组示例性用户界面;
图9是本申请实施例提供的“WLAN”应用中菜单列表更新时的另一个示例性用户界面;
图10是本申请实施例提供的电子设备100的结构示意图;
图11是本申请实施例提供的菜单列表更新方法的一个示例性流程示意图;
图12是本申请实施例提供的电子设备采取方式1得到新菜单列表的一组示意图;
图13是本申请实施例提供的电子设备采取方式1得到一种新菜单列表的流程图;
图14是本申请实施例提供的采取方式2得到一种新菜单列表的流程图;
图15是本申请实施例提供的采取方式2得到新菜单列表的一组示意图;
图16是本申请实施例提供的电子设备采取方式3得到另一种新菜单列表的流程图;
图17是本申请实施例提供的采取方式3得到新菜单列表的一组示意图;
图18是本申请实施例提供的电子设备设置新菜单列表中的焦点菜单项的一组示意图。
具体实施方式
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请以下实施例中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在电子设备上经过解析,渲染,最终呈现为用户可以识别的内容。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界 面。它可以是在电子设备的显示屏中显示的文本、图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。
由于本申请实施例涉及分布式协同设备之间文件保护的应用,为了便于理解,下面先对本申请实施例涉及的相关术语及概念进行介绍。
(1)无障碍功能:
在本申请实施例中,无障碍功能是指一种可以使视障用户的意图被理解的交互功能。无障碍功能可以为电子设备提供文本转语音,屏幕朗读等功能。
其中,当开启屏幕朗读功能时,电子设备可以播报当前用户界面上被用户选中的内容。例如,当用户选中用户界面上的某个控件中显示的文本时,电子设备可以播报该文本。
在一些实施例中,电子设备还可以语音提示用户如何操作可以执行被选中的内容。例如,当用户选中用户界面上的某个按钮时,电子设备可以通过播报:“单指双击即可执行该按钮”告知用户如何操作该按钮。
示例性的,图1示出了电子设备在进入无障碍功能后,开启屏幕朗读功能的示例性用户界面11、用户界面12,用户界面11、用户界面12可以由“设置”应用提供。
如图1中的(a)所示,响应于用户在用户界面11中对无障碍功能设置项110的操作(如点击操作),电子设备可以显示如图1中的(b)所示的用户界面12。
如图1中的(b)所示,用户界面12是无障碍功能的设置界面。响应于用户在用户界面12中对屏幕朗读开关控件120上的操作(如点击操作),电子设备可以开启屏幕朗读。开启屏幕朗读之后,电子设备可以通过播报相关内容与用户进行交互。例如,这时,电子设备可以播报:“已开启屏幕朗读”。
可以理解的是,用户界面11、用户界面12只是电子设备运用无障碍功能中的屏幕朗读功能进行播报的一组示例性用户界面。在一些实施例中,电子设备还可以默认开启屏幕朗读功能进行播报。在另一些实施例中,电子设备还可以通过其他的方法进行播报,此处不做限定。
(2)菜单列表:
在本申请实施例中,菜单列表包括一个或多个菜单项。该菜单项可以显示在一个控件中。
同一个菜单列表中的每一个菜单项都具有相同的显示格式。相同的显示格式是指,当菜单项显示在控件中时,在不同控件的相同位置都显示有内容的情况下,该内容是同一个类别的,例如都是图标、文本等。
示例性的,图2为本申请实施例中,一个菜单列表的示意图。
如图2所示,用户界面21中显示了菜单列表210。该菜单列表中显示在用户界面21中的菜单项可以是菜单项211-菜单项2110。
可以理解的是,该菜单列表210中的菜单项除了包括已经显示在用户界面21中的菜单项211-菜单项2110,还可以包括其他未显示在用户界面21中的菜单项。即只要可以在用户界面上显示的菜单项都是菜单列表中的内容。
其中,每个菜单项都具有相同的显示格式。例如,对比菜单项211与菜单项212可以看出:
区域2111与区域2112在显示菜单项211的控件中的位置,与区域2114与区域2115在显示菜单项212的控件中的位置相同。这两个区域中显示的内容都是文本。
区域2113在显示菜单项211的控件中的位置,与区域2116在显示菜单项212的控件中的位置相同。这两个区域中显示的内容都是图标。
(3)焦点菜单项:
在本申请实施例中,焦点菜单项是指菜单列表中,电子设备正在播报的菜单项或者电子设备当前不播报,一旦播报条件被触发就会被电子设备播报的菜单项。例如,电子设备设置菜单项A为焦点菜单项,但是并不会播报该菜单项A。在一些实施例中,用户在菜单项A上的点击操作可以作为触发菜单项A被电子设备播报的播报条件。即响应于用户在菜单项A上的点击操作,电子设备可以播报该菜单项A。在一些实施例中,用户在菜单项A上的滑动操作可以作为触发菜单项A被电子设备播报的播报条件。在另一些实施例中,电子设备还可以采取其他的操作作为菜单项A被电子设备播报的播报条件。此处不作限定。
电子设备可以通过开启无障碍功能中的屏幕朗读功能使电子设备可以进行菜单项的播报,也可以通过其他的方法使电子设备可以播报菜单项,本申请实施例对此不作限定。
示例性的,图3示出了本申请例中,菜单列表中的菜单项成为焦点菜单项的示意图。
如图3所示,用户界面31中显示了菜单项310。响应于用户在菜单项310上的操作(例如点击操作),电子设备可以播报该菜单项310:“five加密WLAN信号强度为满格”。此时,菜单项310为焦点菜单项。
焦点菜单项是可以改变的。在一些实施例中,响应于用户改变焦点菜单项的操作(如下滑操作),电子设备可以设置当前焦点菜单项的下一个菜单项为焦点菜单项。在另一些实施例中,响应于用户改变焦点菜单项的操作(如上滑操作),电子设备可以设置当前焦点菜单项的上一个菜单项为焦点菜单项。可以理解的是,还有其他改变焦点菜单项的方式,本申请实施例对此不作限定。
可以理解的是,电子设备在播报焦点菜单项时,除了可以播报该焦点菜单项以外,还可以播报其他的信息。例如,该焦点菜单项处于菜单列表的多少项等信息也可以进行播报。本申请实施例对此不作限定。
为了增加视障用户对电子设备的使用体验感。一种方案是,电子设备可以通过播报菜单列表使用户获取菜单列表中涉及的信息。
如图4中的(a)所示,用户界面51中可以包括菜单列表510,该菜单列表中的所有菜单项包括菜单项511-菜单项5110。该菜单列表510可以由“WLAN”应用提供。假设用户是采用向下滑动用户界面的方式,从第一个菜单项开始遍历该菜单列表510的,且已经获取了前三个菜单项,即菜单项511到菜单项513,涉及的信息。当菜单列表510中的第四个菜单项514为焦点菜单项时,电子设备开始更新该菜单列表510。
此时,电子设备执行图5所示的流程,可以更新菜单列表510。电子设备首先执行WLAN更新逻辑。然后,基于WLAN更新逻辑,获取WLAN数据。再基于WLAN排序规则排序该WLAN数据,得到更新后的菜单列表。例如,排序规则可以是将没有加密的WLAN数据排在加密的WLAN数据之后等。最后,在用户界面中显示更新后的菜单列表。
如图4中的(b)所示,更新后的菜单列表可以是用户界面52中显示的菜单列表520。由于更新前的菜单列表510中的焦点菜单项是菜单列表中的第四个菜单项514,电子设备可以根据焦点菜单项在菜单列表中的位置不改变或者根据焦点菜单项不改变,继续设置菜单列表520中的第四个菜单项514为焦点菜单项。用户可以继续向下滑动用户界面以遍历该菜单 项514后面的菜单项。
可以理解的是,在该方案中,更新后的菜单列表520中的焦点菜单项为菜单项514。该菜单项514前面的菜单项可能是电子设备还没有播报过的,例如,菜单项522,该菜单项522存在于已经被电子设备播报过的菜单项511、菜单项512、菜单项514的中间。菜单项514后面的菜单项可能是电子设备已经播报过的,例如菜单项513。
假设用户需要获取的信息是菜单项522涉及的信息。此时,用户继续采用向下滑动用户界面的方式遍历该菜单列表,则电子设备需要重复播报菜单项511、菜单项512、菜单项513、菜单项514才可以播报到菜单项522。
这样,菜单列表更新后,如果用户继续采用向下滑动用户界面的方式遍历菜单列表。会导致电子设备重复播报,无法快速遍历菜单列表。导致用户对电子设备的使用体验感不佳。
而采用本申请实施例提供的菜单列表更新方法,菜单列表更新后,可以使视障用户快速遍历菜单列表,找到期望的菜单项,提高用户对电子设备的使用体验感。
采用本申请实施例中的菜单列表更新方法,对于前述图4中的(a)所示出的用户界面51中的菜单列表510,假设用户是采用向下滑动用户界面的方式,遍历该菜单列表510的。电子设备已经播报了前三个菜单项,在播报第四个菜单项514时,该菜单列表510进行更新。更新后,可以得到如图6中的(a)所示的用户界面71。
如图6中的(a)所示,电子设备可以设置用户界面71中的菜单列表710中的焦点菜单项不改变,仍然为第四个菜单项514。对于菜单列表710相比于更新前的菜单列表510,失效菜单项有菜单项515、菜单项517。有效菜单项有菜单项512-菜单项514,菜单项516、菜单项518-菜单项5110,新增菜单项有菜单项711、菜单项712。电子设备不在菜单列表710中显示失效菜单项;可以将有效菜单项中的菜单项511-菜单项513依然显示在焦点菜单项514之前。菜单项516、菜单项518-菜单项5110依然显示在焦点菜单项之后。可以将新增菜单项711和菜单项712都显示在焦点菜单项514的后面。
可以理解的是,失效菜单项是指在更新前的菜单列表中存在而在更新后的菜单列表中不存在的菜单项;有效菜单项是指既存在于更新前的菜单列表,也存在于更新后的菜单列表中的菜单项;新增菜单项是指在更新前的菜单列表中不存在而在更新后的菜单列表中存在的菜单项。
响应于用户在用户界面71中的操作(例如下滑操作),电子设备可以显示如图6中的(b)所示的用户界面72。
如图6中的(b)所示,在用户界面72中,菜单列表710的焦点菜单项是之前焦点菜单项514的下一个菜单项516。电子设备可以播报该菜单项516:“six加密WLAN信号强度为满格”。
当用户继续向下滑动用户界面,可以使焦点菜单项变成菜单项516的下一个菜单项,电子设备可以播报该菜单项。
这样,用户可以继续采用向下滑动用户界面的方式,电子设备可以依次播报菜单项516后面的菜单项。不会导致不必要的重复播报。
由此可见,采取本申请实施例中的菜单列表更新方法,电子设备可以快速遍历菜单列表710。这样,视障用户可以快速找到期望的菜单项,提高视障用户对电子设备的使用体验感。
采取本申请实施例提供的菜单列表更新方法时,更新一个旧菜单列表时,可以采取不同 的方式,得到不同的新菜单列表:
方式1:相比于更新前的菜单列表,电子设备可以将更新后的菜单列表中有效菜单项作为该更新后的菜单列表的前面部分;将新增菜单项按照业务排序规则进行排序,然后置于有效菜单项之后。得到更新后的菜单列表。
方式2:对于有效菜单项中处于更新前的菜单列表的焦点菜单项(包括焦点菜单项)之前的菜单项,电子设备可以保留这些菜单项在更新前的菜单列表中的相对顺序,将这些菜单项置于更新后的菜单列表的前面部分;电子设备可以将有效菜单项中处于更新前的菜单列表的焦点菜单项之后的菜单项与新增菜单项一起按照业务排序规则进行排序,然后作为更新后的菜单列表的后面部分。得到更新后的菜单列表。
方式3:对于有效菜单项中已经被电子设备播报过的菜单项,电子设备可以保留这些菜单项在更新前的菜单列表中的相对顺序,将这些菜单项置于更新后的菜单列表的前面部分;电子设备可以将有效菜单项中没有被电子设备播报过的菜单项与新增菜单项一起按照业务排序规则进行排序,然后作为更新后的菜单列表的后面部分。得到更新后的菜单列表。
下面参考图1所示的用户界面,在电子设备启动了无障碍功能中的屏幕朗读功能的情况下,结合具体应用场景,对本申请实施例提供的菜单列表更新方法进行示例性描述:
应用场景1:电子设备打开“WLAN”应用时,可以显示WLAN列表,该WLAN列表可以作为本申请实施例中的一种菜单列表。在“WLAN”应用中,当电子设备检测到新的WLAN网络时可以触发菜单列表的更新。
下面以该应用场景下,电子设备采取方式1更新菜单列表,对“WLAN”应用中的菜单列表进行播报为例,对相关用户界面进行示例性描述:
图7a-图7e示出了“WLAN”应用中菜单列表更新时的一组示例性用户界面。
对于电子设备每次打开“WLAN”应用显示的第一个菜单列表,电子设备可以将该菜单列表中的多个菜单项按照该“WLAN”应用的业务排序规则进行排序,该业务排序规则可以是将未加密的菜单项置于加密的菜单项之前,未加密的菜单项中“WLAN”网络信号强的菜单项置于信号弱的菜单项之前,信号强度一样则安全性高的菜单项置于安全性低的菜单项之前。加密的菜单项的排序规则可以参考未加密的菜单项的排序规则,此处不再赘述。
可以理解的是,对于由“WLAN”应用提供的多个菜单项,电子设备还可以采取其他的业务排序规则对该多个菜单项进行排序,得到菜单列表,此处不作限定。
当电子设备按照前述的“WLAN”应用的业务排序规则对多个菜单项进行排序时,得到的菜单列表可以参考图7a所示出的用户界面81。
如图7a所示,用户界面81可以包括菜单列表810,该菜单列表810可以由“WLAN”应用提供。假设此时,该菜单列表810中所有的菜单项都显示在用户界面81中,所有的菜单项可以包括菜单项811-菜单项8110。
在用户界面81中,对比菜单项811提供的“WLAN”信号标识8110和菜单项812提供的“WLAN”信号标识8120可以看出,由于菜单项811提供的“WLAN”网络的没有加密,而菜单项812提供的“WLAN”网络的加密了,所以,菜单项811置于菜单项812之前。对于菜单项815提供的“WLAN”信号标识8150和菜单项816提供的“WLAN”信号标识8160可以看出,由于菜单项811提供的“WLAN”网络信号比菜单项812提供的“WLAN”网络强,所以,菜单项815置于菜单项816之前。
响应于用户在用户界面81中的操作(例如点击操作或者下滑操作),电子设备可以开始 遍历该菜单列表810,此时,电子设备可以显示如图7b所示的用户界面82。
如图7b所示,在用户界面82中,电子设备设置菜单列表810中的焦点菜单项为第二个菜单项812。此时,电子设备可以播报该菜单项812:“two加密WLAN信号强度为满格”。
通过电子设备播报菜单项812,用户可以获取菜单项812涉及的信息。然后继续操作用户界面,响应于用户在用户界面82中的操作(例如下滑操作),电子设备可以继续遍历该菜单列表810,此时,电子设备可以显示如图7c所示的用户界面83。
如图7c所示,在用户界面83中,菜单列表810的焦点菜单项从第二个菜单项812,变成了第三个菜单项813。此时电子设备可以播报菜单项813:“three加密WLAN信号强度为满格”。
此时,电子设备检测到新的WLAN网络,可以对菜单列表810进行更新。
如图7d所示,用户界面84中可以显示更新后的菜单列表820。该菜单列表820的所有菜单项,都显示在用户界面84中。菜单列表820相比于菜单列表810而言,失效菜单项有菜单项814、菜单项816、菜单项817和菜单项818。有效菜单项是菜单项811-菜单项813、菜单项815、菜单项819、菜单项8110,新增菜单项是821-菜单项824。
电子设备获取菜单列表820的方法可以参考下文的描述:
其中,对于有效菜单项,电子设备可以将这些菜单项作为菜单列表820的前面部分。这些菜单项在更新前是按照“WLAN”应用的业务排序规则进行排序的,电子设备可以保留这些菜单项的相对顺序,不需要再重新排序。即电子设备可以将菜单项811-菜单项813、菜单项815、菜单项819、菜单项8110,新增菜单项是821-菜单项824作为菜单列表820的前面部分。
对于新增菜单项821-菜单项824,电子设备可以将这些菜单项按照“WLAN”应用的业务排序规则进行排序,并作为菜单列表的后面部分。即电子设备可以将这些菜单项置于有效菜单项之后,得到菜单列表820。
由于菜单列表810中的焦点菜单项,即菜单项813,在菜单列表820中依然存在,则电子设备可以设置焦点菜单项不改变。在菜单列表820中,焦点菜单项依然为菜单项813。
在本申请实施例中,更新后的菜单列表820中的焦点菜单项与更新前的菜单列表810中的焦点菜单项都是菜单项813,为了防止菜单列表频繁更新导致的将焦点菜单项多次重复播报,电子设备可以不自动播报该菜单项813。
在一些实施例中,虽然该菜单项813已经被电子设备播报过,但是为了提示用户当前的菜单列表已经更新了,电子设备可以自动播报一次该焦点菜单项:“three加密WLAN信号强度为满格”。
菜单列表的更新不会影响用户快速地遍历该菜单列表,用户可以继续操作用户界面以获取当前焦点菜单项的下一个菜单项涉及的信息。响应于用户在用户界面84中的操作(例如下滑操作),电子设备可以开始遍历该菜单列表820,此时,电子设备可以显示如图7e所示的用户界面85。
如图7e所示,在用户界面85中,菜单列表810的焦点菜单项从第三个菜单项813,变成了第四个菜单项815。此时电子设备可以播报该菜单项815:“five加密WLAN信号强度为满格”。
用户在获取到菜单项815涉及的信息后,可以继续操作用户界面以获取下一个菜单项涉及的信息,直到获取到自己需要的菜单项涉及的信息。
这样,已经遍历过的菜单项中间,不会存在未遍历过的菜单项,当用户获取未遍历过的 菜单项涉及的信息时,就不会再经历多次重复遍历同一个菜单项的过程,可以快速遍历菜单列表,提高用户对电子设备的使用体验感。
应用场景2:电子设备打开通讯应用时,可以显示消息列表,该消息列表可以作为本申请实施例中的一种菜单列表。在通讯应用中,当电子设备接收到新消息时可以触发菜单列表的更新。电子设备可以采取本申请实施例提供的菜单列表更新方法对该菜单列表进行播报。
下面以该应用场景下,电子设备采取方式2更新菜单列表,对某一个通讯应用中的菜单列表进行播报为例,对相关用户界面进行示例性描述:
图8a-图8d示出了通讯应用中菜单列表更新时的一组示例性用户界面。
对于电子设备每次打开通讯应用显示的第一个菜单列表,电子设备可以将该菜单列表中的多个菜单项按照该通讯应用的业务排序规则进行排序,该业务排序规则可以是按照该多个菜单项对应的时间戳排序,时间戳越靠后则该菜单项在菜单列表中越靠前。一个菜单项的时间戳是指电子设备获取到该菜单项的时间。
可以理解的是,对于由通讯应用提供的多个菜单项,电子设备除了根据时间戳进行排序以外,还可以采取不同的业务排序规则对该多个菜单项进行排序,得到菜单列表,此处不作限定。
当电子设备按照菜单项的时间戳越靠后则该菜单项在菜单列表中越靠前的业务排序规则对多个菜单项进行排序时,得到的菜单列表可以参考图8a所示出的用户界面91。
如图8a所示,用户界面91可以包括菜单列表910。该菜单列表910可以由一个通讯应用提供。该菜单列表910中所有的菜单项都显示在用户界面91中,包括菜单项911-菜单项916。
在用户界面91中,菜单项911对应的时间戳9110是“上午08:20”,这表示电子设备是在上午08:20获取到该菜单项的。菜单项912对应的时间戳9120是“上午8:17”,由于时间戳9110相比于时间戳9120靠后,则电子设备将菜单项911置于菜单项912之前。
响应于用户在用户界面91上第二个菜单项912上的操作(例如点击操作或者下滑操作),电子设备可以开始遍历该菜单列表910,此时,电子设备可以显示如图8b所示的用户界面92。
如图8b所示,在用户界面92中,电子设备设置菜单列表910中的焦点菜单项为第二个菜单项912。此时,电子设备可以开始播该报菜单项912:“ma上午08:17图片”。
此时,电子设备接收到新消息,可以对菜单列表910进行更新。
如图8c所示,菜单列表910更新后,可以得到用户界面93中显示的菜单列表920。相比于菜单列表910,菜单列表920中新增菜单项为921。有效菜单项包括菜单项911-菜单项916。其中菜单项911-菜单项915已经显示在用户界面93中。菜单项916没有显示在用户界面93中,但是可以显示在用户界面93中。
电子设备获取菜单列表920的方法可以参考下文的描述:
对于有效菜单项中处于菜单列表910的焦点菜单项之前(包括焦点菜单项)的菜单项,电子设备可以保留这些菜单项的相对顺序,作为菜单列表920中的前面部分。即,电子设备可以将菜单项911、菜单项912,置于菜单列表920的前面部分,且菜单项911、菜单项912在菜单列表920中的相对顺序与菜单列表910中的相对顺序相同。
对于有效菜单项,电子设备可以将这些菜单项中处于菜单列表910的焦点菜单项之后的菜单项,电子设备可以将这些菜单项与菜单列表920中新增菜单项一起,按照该通讯应用的业务排序规则进行排序。即,电子设备可以将菜单项913-菜单项916以及菜单项921按照菜 单项的时间戳越靠后则该菜单项在菜单列表中越靠前的业务排序规则进行排序。将这些菜单项排序后作为菜单列表920的后面部分。即,电子设备可以将排序后的菜单项913-菜单项916以及菜单项921置于菜单项911、912之后,得到菜单列表920。
由于菜单列表910中的焦点菜单项,即菜单项912,在菜单列表920中依然存在,则电子设备可以设置焦点菜单项不改变,将菜单列表920中的焦点菜单项设置为菜单项912。
响应于用户在用户界面93中的操作(例如下滑操作),电子设备可以开始遍历该菜单列表920,此时,电子设备可以显示如图8d所示的用户界面94。
如图8d所示,在用户界面94中,菜单列表的焦点菜单项从第二个菜单项912,变成了第三个菜单项921。此时,电子设备可以播报该菜单项921:“bai一条未读信息上午08:30文件”
可以理解的是,用户可以继续操作用户界面85以快速遍历完该菜单列表920。如果还有更新,新增菜单项始终会被用户快速遍历到。
应用场景3:对于前述“WLAN”应用提供的菜单列表810,在电子设备没有播报菜单项811就播报了菜单项812,然后播报菜单项813时,电子设备检测到新的WLAN网络,可以对菜单列表810进行更新。电子设备可以采取本申请实施例提供的菜单列表更新方法对该菜单列表进行播报。
下面以该应用场景下,电子设备采取方式3更新菜单列表,对“WLAN”应用中的菜单列表进行播报为例,对相关用户界面进行示例性描述:
如图9所示,用户界面86中可以显示更新后的菜单列表830,该菜单列表830中所有菜单项,都显示在用户界面91中。菜单列表830相比于菜单列表810而言,失效菜单项有菜单项813、菜单项814、菜单项816、菜单项817、菜单项818。有效菜单项有菜单项811、菜单项812、菜单项815、菜单项819、菜单项8110,新增菜单项是831-菜单项835。
电子设备获取菜单列表830的方法可以参考下文的描述:
对于有效菜单项中已经被电子设备播报过的菜单项,电子设备可以保留这些菜单项在更新前的菜单列表810中的相对顺序,作为菜单列表830中的前面部分。即,电子设备可以将菜单项812置于菜单列表830的前面部分。
对于有效菜单项,电子设备可以将这些菜单项中没有被电子设备播报过的菜单项,与菜单列表830中新增菜单项,按照该通讯应用的业务排序规则进行排序。即,电子设备可以将菜单项811、菜单项812、菜单项815、菜单项819、菜单项8110,与新增菜单项是831-菜单项835按照菜单项的时间戳越靠后则该菜单项在菜单列表中越靠前的业务排序规则进行排序。将这些菜单项排序后作为菜单列表830的后面部分。即,电子设备可以将排序后的菜单项811、菜单项812、菜单项815、菜单项819、菜单项8110,与新增菜单项是831-菜单项835置于菜单项812之后,得到菜单列表830。
由于菜单列表810中的焦点菜单项,即菜单项813,在菜单列表830中不存在。且旧菜单列表的焦点菜单项之前有已经被电子设备播报过的有效菜单项812,则电子设备可以设置新菜单列表830中,第一个不是旧菜单列表的焦点菜单项813之前的菜单项,即菜单项811为焦点菜单项。
由于该菜单项811没有被电子设备播报过,则电子设备可以自动播报一次该焦点菜单项:“one已连接WLAN信号强度为2格”。
可以理解的是,用户可以继续操作用户界面86以快速遍历完该菜单列表830。
下面首先介绍本申请实施例提供的示例性电子设备100。
图10是本申请实施例提供的电子设备100的结构示意图。
下面以电子设备100为例对实施例进行具体说明。应该理解的是,电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。 在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机 接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
在本申请实施例中,电子设备可以通过扬声器170A播报菜单列表。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用(比如人脸识别功能,指纹识别功能、移动支付功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如人脸信息模板数据,指纹信息模板等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压 力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
本申请实施例中,该处理器110可以调用内部存储器121中存储的计算机指令,以使得电子设备100执行本申请实施例中的菜单列表更新方法。
下面结合上述示例性电子设备100的硬件结构示意图,对本申请实施例中的菜单列表更新方法进行具体描述:
图11为本申请实施例中菜单列表更新方法的一个示例性流程示意图:
S101、电子设备确定旧菜单列表中的焦点菜单项;
旧菜单列表,是指更新前的菜单列表。
电子设备可以确定,旧菜单列表更新前播报的最后一个菜单项为焦点菜单项。
例如,旧菜单列表可以是如图7c所示出菜单列表810,电子设备可以确定该菜单列表810中的焦点菜单项为813。
S102、电子设备执行业务更新逻辑,获取逻辑列表;
逻辑列表,逻辑列表是指待显示的所有菜单项的集合;
业务更新逻辑,是指应用中的菜单列表的更新条件被触发,电子设备就更新该应用中的菜单列表。可以理解的是,不同应用更新菜单列表的更新条件可以不同。
例如,对于场景1中涉及的“WLAN”应用,该“WLAN”应用的业务更新逻辑可以是当电子设备检测到新的WLAN网络时触发菜单列表的更新。
对于场景2中涉及的通讯应用,该通讯应用的业务更新逻辑可以是当电子设备接收到新消息时可以触发菜单列表的更新。
S103、电子设备根据该旧菜单列表和该逻辑列表,得到失效列表与新增列表;
失效列表是指失效菜单项的集合。
新增列表是指新增菜单项的集合。
电子设备根据该旧菜单列表和该逻辑列表,获取该旧菜单列表中存在但在该逻辑列表中不存在的所有菜单项,得到失效列表。还可以获取该旧菜单列表中不存在但在该逻辑列表中存在的所有新增菜单项,得到新增列表。
具体的,电子设备可以将旧菜单列表中的每一个菜单项与逻辑列表中的菜单项进行匹配, 如果某一个菜单项与逻辑列表中的每一个菜单项都不匹配,电子设备可以确定该菜单项为失效菜单项。这样,电子设备可以得到失效列表。
电子设备可以将逻辑列表中的每一个菜单项与旧菜单列表中的菜单项进行匹配,如果某一个菜单项与旧菜单列表中的每一个菜单项都不匹配,电子设备可以确定该菜单项为新增菜单项。这样,电子设备可以得到新增列表。
其中,图12中的(a)示出了某一个应用的旧菜单列表A的示意图,该旧菜单列表A中的菜单项可以包括data1、data2、data3、data4。图12中的(b)示出了电子设备执行业务更新逻辑,更新该旧菜单列表A时,获取的逻辑列表A的示意图。该逻辑列表A中的菜单项可以包括data1、data2、data3、data5、data6、data7、data8。
图12中的(c)示出了失效列表A的示意图,该失效列表A是电子设备对比旧菜单列表A和逻辑列表A所得到的。data4在该旧菜单列表A中存在,在该逻辑列表A中不存在,所以data4为该失效列表A中的失效菜单项。
图12中的(d)示出了新增列表A的示意图,电子设备可以对比旧菜单列表A和逻辑列表A得到该新增列表A中的菜单项为data5、data6、data7、data8。
S104、电子设备根据该旧菜单列表、该失效列表与该新增列表,得到新菜单列表;
新菜单列表,是指更新后的菜单列表。
对于一个旧菜单列表、失效列表与新增列表,在不同的场景下,电子设备可以采取不同的方式,得到不同的新菜单列表。下面对电子设备获取新菜单列表的不同方式进行详细描述:
方式1:图13为一些实施例中,电子设备采取方式1得到一种新菜单列表的流程图。
该过程如图13所示,包括步骤S201-步骤S203,下面结合图12示出的电子设备采取方式1得到新菜单列表的一组示意图,对步骤S201-步骤S203进行具体描述:
S201、电子设备根据该旧菜单列表与该失效列表,得到旧有效列表;
旧有效列表是指有效菜单项的集合。
电子设备可以将旧菜单列表中所有的失效菜单项除去,得到旧有效列表。具体的,电子设备可以将该失效列表中的每一个失效菜单项与该旧菜单列表中的所有菜单项项进行匹配,如果相同,则可以将该失效菜单项从该旧菜单列表中除去,得到旧有效列表。
如图12中的(e)示出了旧有效列表A的示意图,电子设备可以将失效列表A中的失效菜单项,即data4,从旧菜单列表A中除去,得到该旧有效列表A,该旧有效列表A中的菜单项可以包括data1、data2、data3。
可以理解的是,旧有效列表中的菜单项之间的相对顺序与旧菜单列表中这些菜单项之间相对顺序相同。
S202、电子设备根据业务排序规则对该新增列表排序,得到有序新增列表;
有序新增列表是指按照业务排序规则进行排序后的新增菜单项的集合。
业务排序规则,是指电子设备对应用的多个菜单项进行排序的规则。不同应用的业务排序规则可以不同。
例如,对于场景1中涉及的“WLAN”应用,该“WLAN”应用的业务排序规则可以是将未加密的菜单项置于加密的菜单项之前,未加密的菜单项中“WLAN”网络信号强的菜单项置于信号弱的菜单项之前,信号强度一样则安全性高的菜单项置于安全性低的菜单项之前,加密的菜单项的排序规则可以参考未加密的菜单项的排序规则,此处不再赘述。
对于场景3中涉及的通讯应用,该通讯应用的业务排序规则可以是按照该多个菜单项对应的时间戳排序,时间戳越靠后则该菜单项在菜单列表中越靠前。
对于不同应用的新增列表,电子设备可以根据该应用的业务排序规则对该新增列表进行排序,得到有序新增列表。
如图12中的(f)示出了有序新增列表A的示意图,电子设备可以将新增列表A根据业务排序规则进行排序得到该有序新增列表A。新增列表A中的菜单项依次为data5、data6、data7、data8。有序新增列表A的菜单项的顺序已经改变,依次为data6、data5、data7、data8。
S203、电子设备根据有序新增列表和旧有效列表,得到新菜单列表。
电子设备可以将有序新增列表置于旧有效列表之后,得到新菜单列表。
如图12中的(g)示出了新菜单列表A的示意图。电子设备可以将有序新增列表A置于旧有效列表A之后,得到该新菜单列表A。
例如,上述场景1中采取的就是该方式1得到菜单列表820的。
方式2:图14为一些实施例中,电子设备采取方式2得到一种新菜单列表的流程图。
该过程如图14所示,包括步骤S301-步骤S303,下面结合图15示出的电子设备采取方式2得到新菜单列表的一组示意图,对步骤S301-步骤S303进行具体描述:
S301、电子设备根据该旧菜单列表与该失效列表,得到焦点前旧列表与焦点后旧列表;
焦点前旧列表是指旧菜单列表中的焦点菜单项之前(包括焦点菜单项)的有效菜单项的集合。
焦点后旧列表是指旧菜单列表中的焦点菜单项之后的有效菜单项的集合。
对于旧菜单列表的焦点菜单项之前(包括焦点菜单项)的所有菜单项,电子设备可以除去这些菜单项中的失效菜单项,得到焦点前旧列表。
具体的,电子设备可以从旧菜单列表中获取焦点项菜单项(包括焦点菜单项)之前的所有菜单项,然后遍历这些菜单项,每遍历一个菜单项,都将该菜单项与失效列表中的菜单项进行匹配,如果该菜单项与失效列表中的某一个菜单项相同,则电子设备可以确定该菜单项是一个失效菜单项,则除去该菜单项。直到遍历完这些菜单项,除去其中所有的失效菜单项,得到焦点前旧列表。
可以理解的是,当旧菜单列表中没有焦点菜单项时,电子设备可以除去旧菜单列表中的失效菜单项,得到焦点前旧列表。
如图15中的(c)示出了焦点前旧列表B的示意图。该焦点前旧列表B是电子设备根据图15中的(a)示出的旧菜单列表A,与如图15中的(b)示出的失效列表A所得到的。
旧菜单列表A中的焦点菜单项为data2,则data1为焦点菜单项之前的菜单项。失效列表A中的失效菜单项为data4。则电子设备可以确定data1、data2为焦点前旧列表中的菜单项。
电子设备可以先从旧菜单列表中获取焦点菜单项之后的所有菜单项,然后除去这些菜单项中的失效菜单项,得到焦点后旧列表。该过程可以参考上述步骤S301中,电子设备得到焦点前旧列表的描述,此处不再赘述。
如图15中的(d)示出了焦点后旧列表B的示意图。该焦点后旧列表B是电子设备根据图15中的(a)示出的旧菜单列表A,与如图15中的(b)示出的失效列表A所得到的。
旧菜单列表A中的焦点菜单项为data2,则电子设备获取焦点菜单项之后的菜单项,即data3、data4。由于失效列表A中的失效菜单项为data4。则电子设备除去data4,确定data3为 焦点前旧列表B中的菜单项。
S302、电子设备根据业务排序规则,利用焦点后旧列表与新增列表,得到有序焦点后列表;
电子设备可以将焦点后旧列表与新增列表中的所有菜单项一起根据业务排序规则进行排序,得到有序焦点后列表。该有序焦点后列表是排序后的所有菜单项的集合。
图15中的(f)示出了有序焦点后列表B的示意图。电子设备可以将焦点后旧列表B与图15中的(e)示出的新增列表A中的菜单项一起根据业务排序规则进行排序。得到有序焦点后列表B。
S303、电子设备根据该有序焦点后列表与该焦点前旧列表,得到新菜单列表。
电子设备可以将有序焦点后列表置于焦点前旧列表之后,得到新菜单列表。
如图15中的(g)示出了新菜单列表B的示意图。电子设备可以将有序焦点后列表B置于焦点前旧列表B之后,得到该新菜单列表B。
例如,上述场景2中采取的就是该方式2得到菜单列表920的。
方式3:图16为另一些实施例中,电子设备采取方式3得到另一种新菜单列表的流程图。
该过程如图16所示,包括步骤S401-步骤S403,下面结合图17示出的电子设备采取方式3得到新菜单列表的一组示意图,对步骤S401-步骤S403进行具体描述:
S401、电子设备根据旧菜单列表与失效列表,得到已播报旧列表与未播报旧列表;
已播报旧列表是指已经被播报过的有效菜单项的集合。
未播报旧列表是指没有被播报过的有效菜单项的集合。
已播报旧列表是指已经被所述电子设备播报过的有效菜单项的集合。
对于旧菜单列表中的所有菜单项,电子设备可以除去这些菜单项中的失效菜单项,然后确定剩下的菜单项中已经被播报过的菜单项,得到已播报旧列表。
具体的,对于一个旧菜单列表,电子设备可以为其中的每一个菜单项设置一个播报标识,该播报标识用于区分该菜单项是否被电子设备播报,例如,可以用“0”、“1”作为一个菜单项的播报标识,如果该菜单项被播报过,则电子设备可以将该菜单项的播报标识置为“0”,否则,置为“1”。
电子设备首先可以从旧菜单列表中除去失效菜单项,该过程可以参考前述步骤S301中从旧菜单列表中除去失效菜单项的描述,此处不再赘述。然后,对于旧菜单列表中除去失效菜单项之后的所有菜单项,电子设备可以通过这些菜单项的播报标识,确定这些菜单项中已经被播报过的菜单项的集合,得到已播报旧列表。以及确定这些菜单项中未被播报过的菜单项的集合,得到未播报旧列表。
图17中的(c)示出了已播报旧列表C的示意图。该已播报旧列表C是电子设备根据图17中的(a)示出的旧菜单列表A,与如图17中的(b)示出的失效列表A所得到的。假设此时旧菜单列表A中,已经被播报过的菜单项有data2、data3。由于失效列表A中的失效数据是data4,则电子设备可以确定已播报旧列表C中的菜单项为data2、data3。
对于旧菜单列表中的所有菜单项,电子设备可以除去这些菜单项中的失效菜单项,然后确定剩下的菜单项中未被播报过的菜单项,得到未播报旧列表。该过程可以参考上述步骤S401中,电子设备得到已播报旧列表的描述,此处不再赘述。
图17中的(d)示出了未播报旧列表C的示意图。该未播报旧列表C是电子设备根据图17中的(a)示出的旧菜单列表A,与如图15中的(b)示出的失效列表A所得到的。假设此时旧菜单列表A中,未被播报过的菜单项有data1、data4。由于失效列表A中的失效数据是data4,则电子设备可以确定未播报旧列表C中的菜单项为data1。
S402、电子设备根据业务排序规则,利用未播报旧列表与新增列表,得到有序未播报列表;
电子设备可以将未播报旧列表与新增列表中的所有菜单项一起根据业务排序规则进行排序,得到有序未播报列表。该有序未播报列表是排序后的所有菜单项的集合。
图17中的(f)示出了有序未播报列表C的示意图。电子设备可以将未播报旧列表C和图17中的(e)示出的新增列表A中的菜单项一起根据业务排序规则进行排序。得到有序未播报列表C。
S403、电子设备根据该有序未播报列表与该已播报旧列表,得到新菜单列表。
电子设备可以将有序未播报列表置于已播报旧列表之后,得到新菜单列表。
图17中的(g)示出了新菜单列表C的示意图。电子设备可以将有序未播报列表C置于已播报旧列表C之后,得到该新菜单列表C。即该新菜单列表C由
例如,上述场景3中采取的就是该方式3得到菜单列表830的。
S105、电子设备根据该旧菜单列表中的焦点菜单项,设置该新菜单列表中的焦点菜单项;
图18示出了电子设备设置新菜单列表中的焦点菜单项的一组示意图。
在一种情况下,如果电子设备确定旧菜单列表中的焦点菜单项是有效菜单项。则电子设备可以设置新菜单列表中的焦点菜单项与旧菜单列表中的焦点菜单项相同。
如图18中的(a)所示,假设旧菜单列表中的data3为焦点菜单项。该焦点菜单项不是失效菜单项,即该焦点菜单项在新菜单列表中依然存在。则电子设备可以设置新菜单列表中的焦点菜单项与旧菜单列表中的焦点菜单项相同,为data3。
在另一种情况下,如果电子设备确定旧菜单列表中的焦点菜单项是失效菜单项,根据电子设备得到新菜单列表的方式不同,电子设备设置新菜单列表中的焦点菜单项的方式也可以不同:
在一些实施例中,如果电子设备是采取前述的方式1确定新菜单列表的。可以有2种不同的设置方式,来设置新菜单列表中的焦点菜单项:
设置方式1:电子设备可以根据旧菜单列表中的焦点菜单项之前是否有有效菜单项来设置新菜单列表中的焦点菜单项。
具体的,若旧菜单列表中的焦点菜单项之前有有效菜单项,则电子设备可以设置旧菜单列表中的焦点菜单项之前的第一个有效菜单项为新菜单列表中的焦点菜单项。
如图18中的(b)所示,假设旧菜单列表中的data4为焦点菜单项。该焦点菜单项是失效菜单项,即该焦点菜单项在新菜单列表中不存在。该旧菜单列表中的焦点菜单项之前的第一个有效菜单项为data2,电子设备可以设置data2为新菜单列表中的焦点菜单项。
若旧菜单列表中的焦点菜单项之前没有有效菜单项。则电子设备可以设置新菜单列表中的第一个菜单项为焦点菜单项。
如图18中的(c)所示,假设旧菜单列表中的data3为焦点菜单项。该焦点菜单项是失效菜单项,且该焦点菜单项之前的全部菜单项,即data1、data2全部都是失效菜单项,则电子 设备可以设置新菜单列表中的第一个菜单项,即data4,为焦点菜单项。
设置方式2:电子设备可以根据旧菜单列表中的焦点菜单项之后是否有有效菜单项来设置新菜单列表中的焦点菜单项。
具体的,若旧菜单列表中的焦点菜单项之后有有效菜单项,电子设备可以设置旧菜单列表中的焦点菜单项之后的第一个有效菜单项为新菜单列表中的焦点菜单项。
如图18中的(d)所示,假设旧菜单列表中的data4为焦点菜单项。该焦点菜单项是失效菜单项。该旧菜单列表中的焦点菜单项之后的第一个有效菜单项为data5,电子设备可以设置data5为新菜单列表中的焦点菜单项。
若旧菜单列表中的焦点菜单项之后没有有效菜单项。电子设备可以设置新菜单列表中的第一个菜单项为焦点菜单项。
如图18中的(e)所示,假设旧菜单列表中的data3为焦点菜单项。该焦点菜单项是失效菜单项。且该焦点菜单项之后的全部菜单项,即data4、data5全部都是失效菜单项,则电子设备可以设置新菜单列表中的第一个菜单项,即data1,为焦点菜单项。
在一些实施例中,如果电子设备是采取前述的方式2确定新菜单列表的。可以有2种不同的设置方式,来设置新菜单列表中的焦点菜单项:
电子设备可以根据旧菜单列表中的焦点菜单项之前是否有有效菜单项来设置新菜单列表中的焦点菜单项。
设置方式1:若旧菜单列表中的焦点菜单项之前有有效菜单项。则电子设备可以设置旧菜单列表中的焦点菜单项之前的第一个有效菜单项为新菜单列表中的焦点菜单项。
如图18中的(f)所示,假设旧菜单列表中的data4为焦点菜单项,该焦点菜单项是一个失效菜单项。假设该焦点菜单项之前的菜单项data1、data2、data3中,data2为失效菜单项。data1、data3都是有效菜单项。则电子设备可以设置旧菜单列表的焦点菜单项之前的第一个有效菜单项,即data3,为新菜单列表中的焦点菜单项。
若旧菜单列表中的焦点菜单项之前没有有效菜单项。则电子设备可以设置新菜单列表中的第一个菜单项为焦点菜单项。
如图18中的(h)所示,假设旧菜单列表中的data3为焦点菜单项,该焦点菜单项是一个失效菜单项。且该焦点菜单项之前的全部菜单项,即data1、data2全部都是失效菜单项,则电子设备可以设置新菜单列表中的第一个菜单项,即data5,为焦点菜单项。
设置方式2:若旧菜单列表中的焦点菜单项之前有有效菜单项。电子设备还可以设置新菜单列表中,第一个不是旧菜单列表中的焦点菜单项之前的菜单项为焦点菜单项。
如图18中的(g)所示,假设旧菜单列表中的data4为焦点菜单项,该焦点菜单项是一个失效菜单项。假设该焦点菜单项之前的菜单项data1、data2、data3中,data2为失效菜单项。data1、data3都是有效菜单项。则电子设备可以设置新菜单列表中,第一个不是旧菜单列表的焦点菜单项之前的菜单项,即data7,为新菜单列表中的焦点菜单项。
若旧菜单列表中的焦点菜单项之前没有有效菜单项。则电子设备可以设置新菜单列表中的第一个菜单项为焦点菜单项。该处可以参考前述对图18中的(h)的描述,此处不再赘述。
在一些实施例中,如果电子设备是采取前述的方式3确定新菜单列表的。可以有2种不 同的设置方式,来设置新菜单列表中的焦点菜单项:
电子设备可以根据旧菜单列表中的焦点菜单项之前是否有已经被电子设备播报过的有效菜单项来设置新菜单列表中的焦点菜单项。
设置方式1:若旧菜单列表中的焦点菜单项之前有已经被电子设备播报过的有效菜单项。则电子设备可以设置旧菜单列表中的焦点菜单项之前的第一个已经被电子设备播报过的有效菜单项为新菜单列表中的焦点菜单项。
如图18中的(i)所示,假设旧菜单列表中的data4为焦点菜单项,该焦点菜单项是一个失效菜单项。假设该焦点菜单项之前的菜单项data1、data2、data3中,data2为失效菜单项。data1、data3都是已经被电子设备播报过的有效菜单项。则电子设备可以设置旧菜单列表的焦点菜单项之前的第一个已经被电子设备播报过的有效菜单项,即data3,为新菜单列表中的焦点菜单项。
若旧菜单列表中的焦点菜单项之前没有已经被电子设备播报过的有效菜单项。则电子设备可以设置新菜单列表中的第一个菜单项为焦点菜单项。
如图18中的(k)所示,假设旧菜单列表中的data3为焦点菜单项,该焦点菜单项是一个失效菜单项。该焦点菜单项之前的菜单项data1是失效菜单项,data2是有效菜单项,但是data2没有被电子设备播报过,即电子设备之前没有已经被电子设备播报过的有效菜单项。则电子设备可以设置新菜单列表中的第一个菜单项,即data4为焦点菜单项。
设置方式2:若旧菜单列表的焦点菜单项之前有已经被电子设备播报过的有效菜单项。电子设备还可以设置新菜单列表中,第一个不是旧菜单列表的焦点菜单项之前的菜单项为焦点菜单项。
如图18中的(j)所示,假设旧菜单列表中的data4为焦点菜单项,该焦点菜单项是一个失效菜单项。假设该焦点菜单项之前的菜单项data1、data2、data3中,data2为失效菜单项。data1、data3都是已经被电子设备播报过的有效菜单项。则电子设备可以设置新菜单列表中,第一个不是旧菜单列表的焦点菜单项之前的菜单项,即data7,为新菜单列表中的焦点菜单项。
若旧菜单列表中的焦点菜单项之前没有已经被电子设备播报过的有效菜单项。则电子设备可以设置新菜单列表中的第一个菜单项为焦点菜单项。该处可以参考前述对图18中的(k)的描述,此处不再赘述。
在一些实施例中,对于新菜单项列表中的焦点菜单项,如果该焦点菜单项在旧菜单列表更新前,没有被电子设备播报过,则电子设备会自动播报一次该焦点菜单项。如果该焦点菜单项在旧菜单列表更新前,已经被电子设备播报过,则电子设备不会自动播报该焦点菜单项。
具体的,对于一个旧菜单列表,电子设备可以为其中的每一个菜单项设置一个播报标识,该播报标识用于区分该菜单项是否被电子设备播报,例如,可以用“0”、“1”作为一个菜单项的播报标识,如果该菜单项被播报过,则电子设备可以将该菜单项的播报标识置为“0”,否则,置为“1”。对于一个新菜单列表,电子设备可以将其中的新增菜单项的播报标识都置为“1”。
所以,电子设备可以通过焦点菜单项的播报标识,判断该焦点菜单项是否被电子设备播报过。如果没有被电子设备播报过,则电子设备会自动播报一次该焦点菜单项。如果已经被电子设备播报过,则电子设备不会自动播报该焦点菜单项。
在一些实施例中,上述电子设备根据该旧菜单列表中的焦点菜单项,设置该新菜单列表 中的焦点菜单项时,也可以使用菜单项的索引值来唯一标识一个菜单项,通过旧菜单列表中的焦点菜单项的索引值,来确定新菜单列表中的焦点菜单项的索引值,然后,设置新菜单列表中该索引值对应的菜单项为焦点菜单项。
在一些实施例中,无论新菜单列表中的焦点菜单项在旧菜单列表更新前,是否已经被电子设备播报过,电子设备都可以不对新菜单列表中的焦点菜单项进行自动播报。
在另一些实施例中,无论新菜单列表中的焦点菜单项在旧菜单列表更新前,是否已经被电子设备播报过,电子设备都可以自动播报一次新菜单项列表中的焦点菜单项。
S106、电子设备在用户界面中显示该新菜单列表。在该新菜单列表中,新增菜单项显示在该焦点菜单项之后。
可以理解的是,电子设备可以采取前述的三种方式得到新菜单列表。然后将该新菜单列表显示在用户界面中。每一种方式得到的新菜单项中,新增菜单项都显示在新菜单列表中的焦点菜单项之后。
例如,对于采取方式1得到的新菜单列表可以是图7d所示出的用户界面84中的菜单列表820。该菜单列表820中的焦点菜单项为菜单项813。相比于更新前的菜单列表810,该菜单列表820中的新增菜单项有菜单项821-菜单项824,这些新增菜单项都显示在焦点菜单项813之后。
对于采取方式2得到的新菜单列表可以是图8c所示出的用户界面93中的菜单列表920。该菜单列表920中的焦点菜单项为菜单项912。相比于更新前的菜单列表910,该菜单列表820中的新增菜单项有菜单项921,该新增菜单项显示在焦点菜单项912之后。
对于采取方式3得到的新菜单列表可以是图9中所示出的用户界面86中的菜单列表830。该菜单列表830中的焦点菜单项为菜单项811。相比于更新前的菜单列表810,该菜单列表830中的新增菜单项有菜单项831-菜单项835,这些新增菜单项都显示在焦点菜单项811之后。
可以理解的是,上述步骤S101只需要在步骤S105之前执行即可。
由此可见,采取本申请实施例提供的菜单列表更新方法,更新菜单列表时,新菜单列表中的焦点菜单项后面的菜单项是电子设备没有播报过的。焦点菜单项之前的菜单项中,如果电子设备没有播报过该菜单项,则该菜单项也不会排列在已经被电子设备播报过的菜单项之间。这样,当电子设备遍历该更新后的菜单列表时,不会导致不必要的重复播报,可以快速遍历菜单列表,找到用户期望的菜单项,提升用户对电子设备的使用体验感。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。
上述实施例中所用,根据上下文,术语“当…时”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。

Claims (39)

  1. 一种菜单列表更新方法,其特征在于,包括:
    电子设备显示旧菜单列表;
    所述电子设备更新所述旧菜单列表,得到新菜单列表;
    所述电子设备根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项;
    所述电子设备显示所述新菜单列表;在所述新菜单列表中,新增菜单项不显示在所述新菜单列表中的焦点菜单项之前;所述新增菜单项是指在所述旧菜单列表中不存在而在所述新菜单列表中存在的菜单项。
  2. 根据权利要求1所述的方法,其特征在于:
    在所述新菜单列表中,根据业务排序规则进行排序后的新增菜单项显示在有效菜单项之后;所述有效菜单项是指既存在于所述旧菜单列表也存在于所述新菜单列表中的菜单项。
  3. 根据权利要求2所述的方法,其特征在于,所述电子设备更新所述旧菜单列表,得到新菜单列表包括:
    所述电子设备将有序新增列表置于旧有效列表之后,得到所述新菜单列表;所述旧有效列表是指所述有效菜单项的集合;所述有序新增列表是指根据所述业务排序规则进行排序后的新增菜单项的集合。
  4. 根据权利要求1所述的方法,其特征在于:
    当所述旧菜单列表中的焦点菜单项是失效菜单项时,在所述新菜单列表中,所述旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在所述旧菜单列表中的焦点菜单项之前的有效菜单项之后;
    当所述旧菜单列表中的焦点菜单项是有效菜单项时,在所述新菜单列表中,所述旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在所述旧菜单列表中的焦点菜单项以及所述旧菜单列表中的焦点菜单项之前的有效菜单项之后。
  5. 根据权利要求4所述的方法,其特征在于,所述电子设备更新所述旧菜单列表,得到新菜单列表包括:
    当所述旧菜单列表中的焦点菜单项是失效菜单项时,所述电子设备将有序焦点后列表置于焦点前旧列表之后,得到所述新菜单列表;所述有序焦点后列表是指所述旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项的集合;所述焦点前旧列表是指所述旧菜单列表中的焦点菜单项之前的有效菜单项的集合;
    当所述旧菜单列表中的焦点菜单项是有效菜单项时,所述电子设备将有序焦点后列表置于焦点前旧列表之后,得到所述新菜单列表;所述有序焦点后列表是指所述旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项的集合;所述焦点前旧列表是指所述旧菜单列表中的焦点菜单项以及所述旧菜单列表中的焦点菜单项之前的有效菜单项的集合。
  6. 根据权利要求1所述的方法,其特征在于:
    在所述新菜单列表中,所述旧菜单列表中的没有被所述电子设备播报过的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在所述旧菜单列表中的已经被所述电子设备播报过的有效菜单项之后。
  7. 根据权利要求6所述的方法,其特征在于,所述电子设备更新所述旧菜单列表,得到新菜单列表包括:
    所述电子设备将有序未播报列表置于已播报旧列表之后,得到所述新菜单列表;所述有序未播报列表是指所述旧菜单列表中的没有被所述电子设备播报过的有效菜单项与新增菜单项根据所述业务排序规则进行排序后的所有菜单项的集合;所述已播报旧列表是指所述已经被所述电子设备播报过的有效菜单项的集合。
  8. 根据权利要求2或3所述的方法,其特征在于,所述电子设备根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项,具体包括:
    当所述电子设备确定所述旧菜单列表中的焦点菜单项是非失效菜单项时,所述电子设备设置所述新菜单列表中的焦点菜单项与所述旧菜单列中的焦点菜单项相同;
    当所述电子设备确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之后有非失效菜单项时,所述电子设备设置所述旧菜单列表中的焦点菜单项之后的第一个非失效菜单项为所述新菜单列表中的焦点菜单项;
    当所述电子设备确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之后没有非失效菜单项时,所述电子设备设置所述新菜单列表中的第一个菜单项为焦点菜单项。
  9. 根据权利要求2-5中任一项所述的方法,所述电子设备根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项,具体包括:
    当所述电子设备确定所述旧菜单列表中的焦点菜单项是有效菜单项时,所述电子设备设置所述新菜单列表中的焦点菜单项与所述旧菜单列中的焦点菜单项相同;
    当所述电子设备确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前有有效菜单项时,所述电子设备设置所述旧菜单列表中的焦点菜单项之前的第一个有效菜单项为新菜单列表中的焦点菜单项;
    当所述电子设备确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前没有非失效菜单时,所述电子设备设置所述新菜单列表中的第一个菜单项为焦点菜单项。
  10. 根据权利要求4或5所述的方法,其特征在于,所述电子设备根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项,具体包括:
    当所述电子设备确定所述旧菜单列表中的焦点菜单项是有效菜单项时,所述电子设备设置所述新菜单列表中的焦点菜单项与所述旧菜单列中的焦点菜单项相同;
    当所述电子设备确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前有有效菜单项时,所述电子设备设置所述新菜单列表中,第一个不是所述旧菜单列表中的焦点菜单项之前的菜单项为所述焦点菜单项;
    当所述电子设备确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前没有非失效菜单时,所述电子设备设置所述新菜单列表中的第一个菜单项为焦点菜单项。
  11. 根据权利要求6或7所述的方法,其特征在于,所述电子设备根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项,具体包括:
    当所述电子设备确定所述旧菜单列表中的焦点菜单项是有效菜单项时,所述电子设备设置所述新菜单列表中的焦点菜单项与所述旧菜单列中的焦点菜单项相同;
    当所述电子设备确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前有已经被所述电子设备播报过的有效菜单项时,所述电子设备设置所述旧菜单列表中的焦点菜单项之前的第一个已经被电子设备播报过的有效菜单项为所述新菜单列表中的焦点菜单项;
    当所述电子设备确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前没有已经被所述电子设备播报过的有效菜单项时,所述电子设备设置所述新菜单列表中的第一个菜单项为焦点菜单项。
  12. 根据权利要求6或7所述的方法,其特征在于,所述电子设备根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项,具体包括:
    当所述电子设备确定所述旧菜单列表中的焦点菜单项是有效菜单项时,所述电子设备设置所述新菜单列表中的焦点菜单项与所述旧菜单列中的焦点菜单项相同;
    当所述电子设备确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表的焦点菜单项之前有已经被电子设备播报过的有效菜单项时,所述电子设备设置所述新菜单列表中,第一个不是所述旧菜单列表中的焦点菜单项之前的菜单项为焦点菜单项;
    当所述电子设备确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前没有已经被所述电子设备播报过的所述有效菜单项时,所述电子设备设置所述新菜单列表中的第一个菜单项为焦点菜单项。
  13. 根据权利要求1-12中任一项所述的方法,其特征在于,所述方法还包括:
    当所述新菜单项列表中的焦点菜单项在所述旧菜单列表更新前,没有被所述电子设备播报过时,所述电子设备自动播报一次所述新菜单项列表中的焦点菜单项;
    当所述新菜单项列表中的焦点菜单项在所述旧菜单列表更新前,已经被所述电子设备播报过时,所述电子设备不自动播报所述新菜单项列表中的焦点菜单项。
  14. 根据权利要求1-12中任一项所述的方法,其特征在于,所述方法还包括:
    所述电子设备自动播报一次所述新菜单项列表中的焦点菜单项。
  15. 根据权利要求1-12中任一项所述的方法,其特征在于,所述方法还包括:
    所述电子设备不自动播报所述新菜单项列表中的焦点菜单项。
  16. 一种电子设备,其特征在于,所述电子设备包括:一个或多个处理器和存储器;
    所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述 计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述第一电子设备执行:
    显示旧菜单列表;
    更新所述旧菜单列表,得到新菜单列表;
    根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项;
    显示所述新菜单列表;在所述新菜单列表中,新增菜单项不显示在所述新菜单列表中的焦点菜单项之前;所述新增菜单项是指在所述旧菜单列表中不存在而在所述新菜单列表中存在的菜单项。
  17. 根据权利要求16所述的电子设备,其特征在于:
    在所述新菜单列表中,根据业务排序规则进行排序后的新增菜单项显示在有效菜单项之后;所述有效菜单项是指既存在于所述旧菜单列表也存在于所述新菜单列表中的菜单项。
  18. 根据权利要求16所述的电子设备,其特征在于:
    当所述旧菜单列表中的焦点菜单项是失效菜单项时,在所述新菜单列表中,所述旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在所述旧菜单列表中的焦点菜单项之前的有效菜单项之后;
    当所述旧菜单列表中的焦点菜单项是有效菜单项时,在所述新菜单列表中,所述旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在所述旧菜单列表中的焦点菜单项以及所述旧菜单列表中的焦点菜单项之前的有效菜单项之后。
  19. 根据权利要求16所述的电子设备,其特征在于:
    在所述新菜单列表中,所述旧菜单列表中的没有被播报过的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在所述旧菜单列表中的已经被播报过的有效菜单项之后。
  20. 根据权利要求17所述的电子设备,其特征在于,根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项,具体包括:
    当确定所述旧菜单列表中的焦点菜单项是非失效菜单项时,设置所述新菜单列表中的焦点菜单项与所述旧菜单列中的焦点菜单项相同;
    当确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之后有非失效菜单项时,设置所述旧菜单列表中的焦点菜单项之后的第一个非失效菜单项为所述新菜单列表中的焦点菜单项;
    当确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之后没有非失效菜单项时,设置所述新菜单列表中的第一个菜单项为焦点菜单项。
  21. 根据权利要求17或18所述的电子设备,根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项,具体包括:
    当确定所述旧菜单列表中的焦点菜单项是有效菜单项时,设置所述新菜单列表中的焦点菜单项与所述旧菜单列中的焦点菜单项相同;
    当确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前有有效菜单项时,设置所述旧菜单列表中的焦点菜单项之前的第一个有效菜单项为新菜单列表中的焦点菜单项;
    当确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前没有非失效菜单时,所述新菜单列表中的第一个菜单项为焦点菜单项。
  22. 根据权利要求18所述的电子设备,其特征在于,根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项,具体包括:
    当确定所述旧菜单列表中的焦点菜单项是有效菜单项时,设置所述新菜单列表中的焦点菜单项与所述旧菜单列中的焦点菜单项相同;
    当确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前有有效菜单项时,设置所述新菜单列表中,第一个不是所述旧菜单列表中的焦点菜单项之前的菜单项为所述焦点菜单项;
    当确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前没有非失效菜单时,设置所述新菜单列表中的第一个菜单项为焦点菜单项。
  23. 根据权利要求19所述的电子设备,其特征在于,根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项,具体包括:
    当确定所述旧菜单列表中的焦点菜单项是有效菜单项时,设置所述新菜单列表中的焦点菜单项与所述旧菜单列中的焦点菜单项相同;
    当确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前有已经被播报过的有效菜单项时,设置所述旧菜单列表中的焦点菜单项之前的第一个已经被播报过的有效菜单项为所述新菜单列表中的焦点菜单项;
    当确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前没有已经被播报过的有效菜单项时,设置所述新菜单列表中的第一个菜单项为焦点菜单项。
  24. 根据权利要求19所述的电子设备,其特征在于,根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项,具体包括:
    当确定所述旧菜单列表中的焦点菜单项是有效菜单项时,设置所述新菜单列表中的焦点菜单项与所述旧菜单列中的焦点菜单项相同;
    当确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表的焦点菜单项之前有已经被播报过的有效菜单项时,设置所述新菜单列表中,第一个不是所述旧菜单列表中的焦点菜单项之前的菜单项为焦点菜单项;
    当确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前没有已经被所述播报过的所述有效菜单项时,设置所述新菜单列表中的第一个菜单项为焦点菜单项。
  25. 根据权利要求16-24中任一项所述的电子设备,其特征在于,所述方法还包括:
    当所述新菜单项列表中的焦点菜单项在所述旧菜单列表更新前,没有被播报过时,自动播报一次所述新菜单项列表中的焦点菜单项;
    当所述新菜单项列表中的焦点菜单项在所述旧菜单列表更新前,已经被播报过时,不自动播报所述新菜单项列表中的焦点菜单项。
  26. 根据权利要求16-24中任一项所述的电子设备,其特征在于,所述方法还包括:
    自动播报一次所述新菜单项列表中的焦点菜单项。
  27. 根据权利要求16-24中任一项所述的方法,其特征在于,所述方法还包括:
    不自动播报所述新菜单项列表中的焦点菜单项。
  28. 一种电子设备,其特征在于,所述电子设备包括:
    显示模块,用于显示旧菜单列表;
    更新模块,用于更新所述旧菜单列表,得到新菜单列表;
    设置模块,用于根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项;
    所述显示模块还用于显示所述新菜单列表;在所述新菜单列表中,新增菜单项不显示在所述新菜单列表中的焦点菜单项之前;所述新增菜单项是指在所述旧菜单列表中不存在而在所述新菜单列表中存在的菜单项。
  29. 根据权利要求28所述的电子设备,其特征在于:
    在所述新菜单列表中,根据业务排序规则进行排序后的新增菜单项显示在有效菜单项之后;所述有效菜单项是指既存在于所述旧菜单列表也存在于所述新菜单列表中的菜单项。
  30. 根据权利要求28所述的电子设备,其特征在于:
    当所述旧菜单列表中的焦点菜单项是失效菜单项时,在所述新菜单列表中,所述旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在所述旧菜单列表中的焦点菜单项之前的有效菜单项之后;
    当所述旧菜单列表中的焦点菜单项是有效菜单项时,在所述新菜单列表中,所述旧菜单列表中的焦点菜单项之后的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在所述旧菜单列表中的焦点菜单项以及所述旧菜单列表中的焦点菜单项之前的有效菜单项之后。
  31. 根据权利要求28所述的电子设备,其特征在于:
    在所述新菜单列表中,所述旧菜单列表中的没有被播报过的有效菜单项与新增菜单项根据业务排序规则进行排序后的所有菜单项显示在所述旧菜单列表中的已经被所述电子设备播报过的有效菜单项之后。
  32. 根据权利要求29所述的电子设备,其特征在于,设置模块,用于根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项,具体包括:
    当所述设置模块确定所述旧菜单列表中的焦点菜单项是非失效菜单项时,所述设置模块设置所述新菜单列表中的焦点菜单项与所述旧菜单列中的焦点菜单项相同;
    当所述设置模块确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表 中的焦点菜单项之后有非失效菜单项时,设置所述旧菜单列表中的焦点菜单项之后的第一个非失效菜单项为所述新菜单列表中的焦点菜单项;
    当所述设置模块确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之后没有非失效菜单项时,设置所述新菜单列表中的第一个菜单项为焦点菜单项。
  33. 根据权利要求29或30所述的电子设备,其特征在于,设置模块,用于根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项,具体包括:
    当所述设置模块确定所述旧菜单列表中的焦点菜单项是有效菜单项时,设置所述新菜单列表中的焦点菜单项与所述旧菜单列中的焦点菜单项相同;
    当所述设置模块确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前有有效菜单项时,设置所述旧菜单列表中的焦点菜单项之前的第一个有效菜单项为新菜单列表中的焦点菜单项;
    当所述设置模块确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前没有非失效菜单时,所述新菜单列表中的第一个菜单项为焦点菜单项。
  34. 根据权利要求30所述的电子设备,其特征在于,设置模块,用于根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项,具体包括:
    当所述设置模块确定所述旧菜单列表中的焦点菜单项是有效菜单项时,设置所述新菜单列表中的焦点菜单项与所述旧菜单列中的焦点菜单项相同;
    当所述设置模块确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前有有效菜单项时,设置所述新菜单列表中,第一个不是所述旧菜单列表中的焦点菜单项之前的菜单项为所述焦点菜单项;
    当所述设置模块确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前没有非失效菜单时,设置所述新菜单列表中的第一个菜单项为焦点菜单项。
  35. 根据权利要求31所述的电子设备,其特征在于,设置模块,用于根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项,具体包括:
    当所述设置模块确定所述旧菜单列表中的焦点菜单项是有效菜单项时,设置所述新菜单列表中的焦点菜单项与所述旧菜单列中的焦点菜单项相同;
    当所述设置模块确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前有已经被播报过的有效菜单项时,设置所述旧菜单列表中的焦点菜单项之前的第一个已经被播报过的有效菜单项为所述新菜单列表中的焦点菜单项;
    当所述设置模块确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前没有已经被播报过的有效菜单项时,设置所述新菜单列表中的第一个菜单项为焦点菜单项。
  36. 根据权利要求31所述的电子设备,其特征在于,设置模块,用于根据所述旧菜单列表中的焦点菜单项,设置所述新菜单列表中的焦点菜单项,具体包括:
    当所述设置模块确定所述旧菜单列表中的焦点菜单项是有效菜单项时,设置所述新菜单 列表中的焦点菜单项与所述旧菜单列中的焦点菜单项相同;
    当所述设置模块确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表的焦点菜单项之前有已经被播报过的有效菜单项时,设置所述新菜单列表中,第一个不是所述旧菜单列表中的焦点菜单项之前的菜单项为焦点菜单项;
    当所述设置模块确定所述旧菜单列表中的焦点菜单项是失效菜单项,且所述旧菜单列表中的焦点菜单项之前没有已经被所述播报过的所述有效菜单项时,设置所述新菜单列表中的第一个菜单项为焦点菜单项。
  37. 一种芯片系统,所述芯片系统应用于电子设备,所述芯片系统包括一个或多个处理器,所述处理器用于调用计算机指令以使得所述电子设备执行如权利要求1-15中任一项所述的方法。
  38. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-15中任一项所述的方法。
  39. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-15中任一项所述的方法。
PCT/CN2022/072536 2021-02-27 2022-01-18 一种菜单列表更新方法和电子设备 WO2022179343A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP22758709.4A EP4283448A4 (en) 2021-02-27 2022-01-18 MENU LIST UPDATE METHOD AND ELECTRONIC DEVICE
US18/238,071 US20230400963A1 (en) 2021-02-27 2023-08-25 Menu list update method and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110221598.7 2021-02-27
CN202110221598.7A CN115061611A (zh) 2021-02-27 2021-02-27 一种菜单列表更新方法和电子设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/238,071 Continuation US20230400963A1 (en) 2021-02-27 2023-08-25 Menu list update method and electronic device

Publications (1)

Publication Number Publication Date
WO2022179343A1 true WO2022179343A1 (zh) 2022-09-01

Family

ID=83048626

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/072536 WO2022179343A1 (zh) 2021-02-27 2022-01-18 一种菜单列表更新方法和电子设备

Country Status (4)

Country Link
US (1) US20230400963A1 (zh)
EP (1) EP4283448A4 (zh)
CN (1) CN115061611A (zh)
WO (1) WO2022179343A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070097269A1 (en) * 2005-07-26 2007-05-03 Junichi Tsukamoto Electronic equipment, system for video content, and display method
CN102479074A (zh) * 2010-11-24 2012-05-30 康佳集团股份有限公司 一种跟踪gui列表刷新内容的方法、装置及应用系统
CN104111918A (zh) * 2013-04-16 2014-10-22 腾讯科技(北京)有限公司 网页内容的无障碍处理方法和无障碍网页装置
CN105468419A (zh) * 2015-12-23 2016-04-06 北京金山安全软件有限公司 一种基于应用软件实现播报的方法、装置及电子设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002297373A (ja) * 2001-03-29 2002-10-11 Sanyo Electric Co Ltd 読み上げ装置
CN105357742B (zh) * 2015-11-12 2019-06-14 小米科技有限责任公司 无线局域网接入方法、装置及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070097269A1 (en) * 2005-07-26 2007-05-03 Junichi Tsukamoto Electronic equipment, system for video content, and display method
CN102479074A (zh) * 2010-11-24 2012-05-30 康佳集团股份有限公司 一种跟踪gui列表刷新内容的方法、装置及应用系统
CN104111918A (zh) * 2013-04-16 2014-10-22 腾讯科技(北京)有限公司 网页内容的无障碍处理方法和无障碍网页装置
CN105468419A (zh) * 2015-12-23 2016-04-06 北京金山安全软件有限公司 一种基于应用软件实现播报的方法、装置及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4283448A4

Also Published As

Publication number Publication date
EP4283448A4 (en) 2024-07-10
US20230400963A1 (en) 2023-12-14
CN115061611A (zh) 2022-09-16
EP4283448A1 (en) 2023-11-29

Similar Documents

Publication Publication Date Title
JP7474333B2 (ja) クロスデバイス・タスク処理、電子デバイス及び記憶媒体のための対話方法
CN110471639B (zh) 显示方法及相关装置
US11922005B2 (en) Screen capture method and related device
US11934352B2 (en) Card rendering method and electronic device
CN112399390B (zh) 一种蓝牙回连的方法及相关装置
KR20110054609A (ko) 블루투스 디바이스의 원격 제어 방법 및 장치
CN114115770B (zh) 显示控制的方法及相关装置
CN110602312B (zh) 通话方法、电子设备及计算机可读存储介质
EP4152782B1 (en) Message pushing method and apparatus
WO2023088209A1 (zh) 一种跨设备音频数据传输的方法和电子设备
CN116231815B (zh) 控制充电的方法及电子设备
WO2022179343A1 (zh) 一种菜单列表更新方法和电子设备
CN115643339A (zh) 调节音量的方法、电子设备及计算机可读存储介质
WO2021254294A1 (zh) 一种切换音频输出通道的方法、装置和电子设备
CN113271577B (zh) 媒体数据播放系统、方法及相关装置
CN114265662B (zh) 一种信息推荐方法、电子设备及可读存储介质
CN117119349B (zh) 音量控制方法、图形界面及相关装置
CN117440081A (zh) 消息共享方法及相关设备
CN118283484A (zh) 信号处理方法及电子设备
CN115878196A (zh) 一种车机开机启动过程的优化方法、终端及存储介质
CN117202030A (zh) 声音输出装置、音频设备及声音输出控制方法
CN116527811A (zh) 一种音频通知的显示方法及电子设备
CN118672473A (zh) 显示方法及电子设备
CN115675358A (zh) 一种快速寻找定位车辆智能钥匙系统及其控制方法
CN115857964A (zh) 应用程序安装方法及相关设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22758709

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022758709

Country of ref document: EP

Effective date: 20230822

NENP Non-entry into the national phase

Ref country code: DE