Sidebar management method and device, electronic equipment and computer storage medium
By implementing sidebar management methods on electronic devices, synchronizing operation information and automatically adjusting sidebars in response to triggered operations and operating system switching, the problem of inconvenient sidebar management in dual operating system environments is solved, and automatic synchronization of sidebar status is achieved.
Patent Information
- Application Number
- CN202311343047.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-16
- Publication Date
- 2025-04-18
AI Technical Summary
The sidebar management of electronic devices in existing dual operating systems is inconvenient, especially when the operating system switches, the sidebar needs to be manually adjusted.
It provides a sidebar management method, which automatically adjusts the sidebar status by responsive to the triggering operation of the sidebar and the switching operation of the operating system.
Automatic synchronization of sidebar status is achieved, avoiding the need for users to manually adjust sidebars and simplifying sidebar management in dual operating system environments.
Smart Images

Figure CN119847388A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of software application technology, and in particular to a sidebar management method, device, electronic device and computer storage medium. Background Art
[0002] With the rapid development of computer technology, the application of smart terminals is becoming more and more extensive.
[0003] Existing smart terminals are all equipped with sidebars. Currently, Android and Windows use sidebars developed under their own systems respectively. Different sidebars can only call applications, functions and properties under their respective platforms. Moreover, with the continuous iteration of functions, the functions in the sidebars are increasing. The styles and operation methods of the sidebars of existing smart terminals are different, and the adjustment of the sidebars is difficult, especially for electronic devices with dual operating systems, where the management of the side status bar is particularly inconvenient. Summary of the invention
[0004] The present application provides a sidebar management method, device, electronic device and computer storage medium, aiming to solve the technical problem of inconvenient sidebar management of electronic devices with existing dual operating systems.
[0005] On the one hand, the present application provides a sidebar management method.
[0006] The sidebar management method is applied to an electronic device, wherein the electronic device includes at least two operating systems;
[0007] The sidebar management method comprises:
[0008] In response to a trigger operation on the sidebar, obtaining operation information of the trigger operation;
[0009] Synchronizing the operation information to each of the operating systems according to the state of each of the operating systems and the synchronization method corresponding to the state; and
[0010] In response to a switching operation on an operating system, the target operating system corresponding to the switching operation adjusts the sidebar according to the operation information.
[0011] In some embodiments of the present application, synchronizing the operation information to each operating system according to the state of each operating system and the synchronization mode corresponding to the state includes:
[0012] Obtaining the status of each of the operating systems;
[0013] Setting the operating system in the running state as the first operating system and setting the operating system in the background state as the second operating system; and
[0014] The operation information is synchronized to the first operating system through a preset inter-process communication, and the operation information is synchronized to the second operating system through a preset network communication.
[0015] In some embodiments of the present application, after the response to the triggering operation on the sidebar and obtaining the operation information of the triggering operation, the method further includes:
[0016] If a status update notification of the sidebar is monitored, updating the status flag of the sidebar in the local storage; and
[0017] If it is detected that the status flag of the sidebar is updated, the operation information is synchronized to each of the operating systems according to the status of each of the operating systems and the synchronization method corresponding to the status.
[0018] In some embodiments of the present application, the responding to the switching operation on the operating system, adjusting the sidebar according to the operation information by the target operating system corresponding to the switching operation, includes:
[0019] In response to the operating system switching operation, the first operating system in the running state is switched to the second operating system in the background state; and
[0020] An information request is initiated to the first operating system through the second operating system, operation information fed back by the first operating system is obtained through the second operating system, and the sidebar is adjusted according to the operation information.
[0021] In some embodiments of the present application, synchronizing the operation information to each operating system according to the state of each operating system and the synchronization mode corresponding to the state includes:
[0022] Acquiring a switching frequency of the operating system, and setting a synchronization frequency according to the switching frequency; and
[0023] The operation information is synchronized to each of the operating systems according to the synchronization frequency, the state of each of the operating systems and the synchronization method corresponding to the state.
[0024] In some embodiments of the present application, the step of responding to a trigger operation on a sidebar and obtaining operation information of the trigger operation includes:
[0025] In response to a trigger operation on the sidebar, obtaining an operation type of the trigger operation; and
[0026] According to the operation type of the trigger operation, operation information associated with the trigger operation is acquired.
[0027] In some embodiments of the present application, acquiring operation information associated with the triggering operation according to the operation type of the triggering operation includes:
[0028] If the trigger operation is a mode switching operation, obtaining a target state mode associated with the mode switching operation; and
[0029] The preset mapping table is queried to obtain the target operation information corresponding to the target state mode.
[0030] In some embodiments of the present application, before querying the preset mapping table to obtain the target operation information corresponding to the target state mode, the method further includes:
[0031] If the trigger operation is a mode setting operation, then acquiring the state mode set by the mode setting operation and the operation information of the state mode; wherein the state mode includes a simple mode and a normal mode;
[0032] Each of the state modes and the operation information corresponding to the state mode are associated and updated to the preset mapping table.
[0033] On the other hand, the present application further provides a sidebar management device, the sidebar management device is applied to an electronic device, the electronic device includes at least two operating systems;
[0034] The sidebar management method device:
[0035] An acquisition module, used to respond to a trigger operation on the sidebar and acquire operation information of the trigger operation;
[0036] a synchronization module, configured to synchronize the operation information to each of the operating systems according to the state of each of the operating systems and the synchronization mode corresponding to the state; and
[0037] The adjustment module is used to respond to the switching operation of the operating system, and adjust the sidebar according to the operation information through the target operating system corresponding to the switching operation.
[0038] On the other hand, the present application also provides an electronic device, the electronic device comprising:
[0039] one or more processors;
[0040] Memory; and
[0041] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the sidebar management method.
[0042] On the other hand, the present application also provides a computer storage medium on which a computer program is stored, and the computer program is loaded by a processor to execute the sidebar management method.
[0043] The technical solution of the embodiment of the present application includes a sidebar management method, device, electronic device and computer storage medium; the sidebar management method is applied to an electronic device, and the electronic device includes at least two operating systems; the method includes: responding to a trigger operation on the sidebar, obtaining operation information of the trigger operation; synchronizing the operation information to each operating system according to the state of each operating system and the synchronization method corresponding to the state; and responding to a switching operation on the operating system, adjusting the sidebar according to the operation information through the target operating system corresponding to the switching operation; in the embodiment of the present application, at least two operating systems are installed in the electronic device, and the electronic device synchronizes the operation information of the sidebar to each operating system installed in the electronic device according to the state of the operating system and the synchronization method corresponding to the state. After the operating system of the electronic device is switched, the user does not need to manually adjust the sidebar for a second time, and the state of the sidebar can be automatically synchronized, which facilitates the management of the sidebar of the electronic device in the dual operating systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 It is a schematic diagram of a scenario in which the sidebar management method provided in an embodiment of the present application is executed;
[0046] Figure 2 This is a schematic diagram of an embodiment of the sidebar management method in the embodiment of the present application;
[0047] Figure 3 A schematic diagram of an embodiment scenario in which two operating entities are installed in an electronic device in a sidebar management method in an embodiment of the present application;
[0048] Figure 4 It is a flowchart of an embodiment of updating the status flag in the sidebar management method provided in the embodiment of the present application;
[0049] Figure 5 It is a schematic diagram of a scenario of updating the status flag in the sidebar management method provided in an embodiment of the present application;
[0050] Figure 6It is a flowchart of an embodiment of sidebar adjustment in the sidebar management method provided in the embodiment of the present application;
[0051] Figure 7 It is a flowchart of an embodiment of obtaining operation information in the sidebar management method provided in the embodiment of the present application;
[0052] Figure 8a It is a scene schematic diagram of an embodiment of sidebar mode setting in the sidebar management method provided in an embodiment of the present application;
[0053] Figure 8b It is a scene diagram of an embodiment of a sidebar normal mode in the sidebar management method provided in an embodiment of the present application;
[0054] Figure 8c It is a scene diagram of an embodiment of the sidebar concise mode in the sidebar management method provided in the embodiment of the present application;
[0055] Fig. 9 It is a schematic diagram of the structure of an embodiment of a sidebar management device provided in an embodiment of the present application;
[0056] Fig.10 It is a schematic diagram of the structure of an embodiment of an electronic device provided in the embodiments of the present application. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of the present invention.
[0058] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0059] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.
[0060] A sidebar management method, device, electronic device and computer storage medium are provided in the embodiments of the present application, which are described in detail below.
[0061] The sidebar management method in an embodiment of the present invention is applied to a sidebar management device, which is arranged in an electronic device. The electronic device is provided with one or more processors, a memory, and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the sidebar management device; the electronic device can be a terminal, for example, a mobile phone or a tablet computer.
[0062] like Figure 1 As shown, Figure 1This is a schematic diagram of a scenario in which the sidebar management method of an embodiment of the present application is executed. The sidebar management scenario in the embodiment of the present invention includes an electronic device 100 (a sidebar management device is integrated in the electronic device 100), and a computer storage medium corresponding to the sidebar management is executed in the electronic device 100 to execute the steps of the sidebar management method.
[0063] Understandably, Figure 1 The electronic devices in the running scenario of the sidebar management method shown, or the devices included in the electronic devices, do not constitute limitations on the embodiments of the present invention. That is, the number of devices and types of devices included in the sidebar management scenario, or the number of devices and types of devices included in each device, do not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be regarded as equivalent replacements or derivatives of the technical solution claimed to be protected in the embodiments of the present invention.
[0064] In the embodiment of the present invention, the electronic device 100 is mainly used for: responding to a trigger operation on a sidebar and obtaining operation information of the trigger operation; synchronizing the operation information to each operating system according to the state of each operating system and the synchronization method corresponding to the state; and responding to a switching operation on the operating system, adjusting the sidebar according to the operation information through the target operating system corresponding to the switching operation.
[0065] In the embodiment of the present invention, the electronic device 100 may be an independent electronic device, or an electronic device network or electronic device cluster composed of electronic devices. For example, the electronic device 100 described in the embodiment of the present invention includes but is not limited to a computer, a network host, a single network electronic device, a set of multiple network electronic devices, or a cloud electronic device composed of multiple electronic devices. The cloud electronic device is composed of a large number of computers or network electronic devices based on cloud computing.
[0066] Those skilled in the art will understand that Figure 1 The application environment shown in the figure is only one application scenario of the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or fewer electronic devices shown in, or electronic device network connection relationships, such as Figure 1 Only one electronic device is shown. It can be understood that the scenario in which the sidebar management method is executed may also include one or more other electronic devices, which are not specifically limited here; the electronic device 100 may also include a memory.
[0067] In addition, in the sidebar management scenario of the present application, the electronic device 100 may be provided with a display device, or the electronic device 100 may not be provided with a display device and may be communicated with an external display device, and the display device is used to output the result of the execution of the sidebar management method in the electronic device. The electronic device 100 may access the backend server 200 (the backend database may be in the local memory of the electronic device, or may be set in the cloud), and the backend server 200 stores information related to the sidebar management method.
[0068] It should be noted that Figure 1 The schematic diagram of the scene of the sidebar management method operation shown is only an example. The scene of the sidebar management method operation described in the embodiment of the present invention is to more clearly illustrate the technical solution of the embodiment of the present invention, and does not constitute a limitation on the technical solution provided by the embodiment of the present invention.
[0069] Based on the scenario of the above sidebar management method, an embodiment of the sidebar management method is proposed.
[0070] like Figure 2 As shown, Figure 2 This is a flow chart of an embodiment of a sidebar management method in an embodiment of the present application. The sidebar management method includes steps 201-203:
[0071] 201. Respond to a trigger operation on the sidebar and obtain operation information of the trigger operation.
[0072] The sidebar management method in the embodiment of the present application is applied to an electronic device, and the type of the electronic device is not specifically limited. For example, the electronic device can be a mobile phone or a tablet. At least two operating systems are installed in the electronic device, such as Figure 3 As shown, Figure 3 This is a schematic diagram of an embodiment scenario in which two operating entities are installed in an electronic device in a sidebar management method in an embodiment of the present application. Figure 3 The Windows operating system and the Android operating system are installed in the electronic device, wherein the Windows operating system includes Windows functional software, Windows gadgets, and has Windows operating system attributes; the Android operating system includes Android functional software, Android gadgets, and has Android operating system attributes.
[0073] The electronic device responds to the trigger operation on the sidebar and obtains the operation information of the trigger operation, wherein the triggering method of the trigger operation is not limited, that is, the trigger operation can be actively triggered by the user, for example, the user actively triggers it by clicking the "Sidebar Edit" button on the display interface of the electronic device; in addition, the trigger operation can also be automatically triggered by the electronic device, for example, the trigger condition that triggers the operation is pre-set in the electronic device: when a pre-set trigger time is reached, the electronic device collects time information in real time, and when it is detected that the pre-set trigger is reached, the electronic device automatically triggers the operation.
[0074] Trigger operation is a general term for operations to adjust the sidebar. For example, trigger operations include: editing operation, switching mode operation, closing operation, etc., among which, editing operation refers to the operation of adjusting the display size and color of the sidebar; switching mode operation refers to the operation of adjusting the sidebar mode. For example, the sidebar includes a simple mode and a regular mode. Under the switching mode operation, the electronic device can adjust the display mode of the sidebar; closing operation refers to the operation of closing the sidebar.
[0075] The operation information refers to the information corresponding to the trigger operation. For example, if the trigger operation is a mode switching operation, the operation information is the display mode information of the sidebar in different modes.
[0076] 202 , synchronizing the operation information to each of the operating systems according to the state of each of the operating systems and the synchronization method corresponding to the state.
[0077] The electronic device obtains the status of each installed operating system. The status in this embodiment includes: running status and background status; for example, the Windows operating system and the Android operating system are installed in the electronic device, the Windows operating system is in a running state, and the Android operating system is in a background state. The background state means that it is not running. The background state can include a closed state and a dormant state, etc.
[0078] The electronic device obtains the synchronization mode corresponding to different states, and the embodiments of the present application are pre-set: the operation state synchronization mode is the synchronization mode of inter-process communication, also called IPC communication, and inter-process communication refers to the transmission of data (exchange of information) between different processes of the electronic device; the background state synchronization mode is the synchronization mode of network communication, and the network communication can be MQTT (Message Queue Telemetry Transport), which is a message protocol based on the publish / subscribe paradigm under the ISO standard (ISO / IEC PRF 20922). MQTT works on the TCP / IP protocol family and is a publish / subscribe message protocol designed for remote devices with low hardware performance and poor network conditions, and relies on message middleware.
[0079] In the embodiment of the present application, the electronic device synchronizes operation information according to the state of each operating system and the synchronization method corresponding to the state, and synchronizes the operation information to each operating system, which can ensure that the operating systems in different states obtain the operation information of the sidebar.
[0080] For ease of understanding, this embodiment provides a specific implementation method for synchronizing operation information on an operating system, including:
[0081] 1. Obtain the status of each of the operating systems;
[0082] 2. Setting the operating system in the running state as the first operating system and setting the operating system in the background state as the second operating system; and
[0083] 3. Synchronize the operation information to the first operating system through preset inter-process communication, and synchronize the operation information to the second operating system through preset network communication.
[0084] In this embodiment, the electronic device obtains the status of each operating system; the electronic device sets the operating system in the running state as the first operating system, and sets the operating system in the background state as the second operating system; the electronic device synchronizes the operation information to the first operating system through the preset inter-process communication, and the electronic device synchronizes the operation information to the second operating system through the preset network communication. In this embodiment, different operating system states are synchronized according to different synchronization methods, which can ensure that the status of the sidebar can be synchronized when the system is switched. Specifically:
[0085] 203 , in response to the switching operation on the operating system, the target operating system corresponding to the switching operation adjusts the sidebar according to the operation information.
[0086] The electronic device responds to the switching operation of the operating system, and determines the target operating system corresponding to the switching operation. At this time, the target operating system contains pre-synchronized operation information. The electronic device adjusts the state of the sidebar according to the operation information through the target operating system, thereby realizing cross-operating system management of the sidebar.
[0087] In the embodiment of the present application, the sidebar management method is applied to an electronic device, and the electronic device includes at least two operating systems; the method includes: responding to a trigger operation on the sidebar, obtaining operation information of the trigger operation; synchronizing the operation information to each operating system according to the state of each operating system and the synchronization method corresponding to the state; and responding to a switching operation on the operating system, adjusting the sidebar according to the operation information through the target operating system corresponding to the switching operation; in the embodiment of the present application, at least two operating systems are installed in the electronic device, and the electronic device synchronizes the operation information of the sidebar to each operating system installed in the electronic device according to the state of the operating system and the synchronization method corresponding to the state. After the operating system of the electronic device is switched, the user does not need to manually adjust the sidebar for a second time, and the state of the sidebar can be automatically synchronized, which facilitates the management of the sidebar of the electronic device in the dual operating systems.
[0088] Further, refer to Figure 4 , Figure 4 It is a flow chart of an embodiment of updating the status identification bit in the sidebar management method provided in the embodiment of the present application.
[0089] In some embodiments of the present application, step 202 synchronizes the operation information to each operating system according to the state of each operating system and the synchronization mode corresponding to the state, and specifically includes steps 301-302:
[0090] 301, if the status update notification of the sidebar is monitored, update the status flag of the sidebar in the local storage, and
[0091] 302. If it is detected that the status flag of the sidebar is updated, the operation information is synchronized to each operating system according to the status of each operating system and the synchronization method corresponding to the status.
[0092] The electronic device monitors the trigger operation of the sidebar in real time. After the electronic device obtains the operation information, the electronic device sends a status update notification of the sidebar and updates the status identification bit of the sidebar in the local storage, where the status identification bit is used to represent the update status of the sidebar. For example, if the status identification bit is 1, it means that the sidebar has been updated. If the status identification bit is 0, it means that the sidebar has not been updated. The electronic device can determine whether to synchronize information based on the update status of the status identification bit.
[0093] If the electronic device does not detect that the status identification bit of the sidebar is updated, the electronic device will continue to detect; if the electronic device detects that the status identification bit of the sidebar is updated, the electronic device will synchronize the operation information to each operating system according to the status of each operating system and the synchronization method corresponding to the status.
[0094] Reference Figure 5 , Figure 5 It is a schematic diagram of a scenario for updating the status identification bit in the sidebar management method provided in an embodiment of the present application. Figure 5 The electronic device monitors the trigger operation of the sidebar in real time. When the electronic device monitors the trigger operation of switching the sidebar mode, the electronic device sends a status update notification of the sidebar and updates the status identification bit of the sidebar in the local persistent storage; if the electronic device detects that the status identification bit of the sidebar is updated, the electronic device synchronizes the operation information to each operating system according to the status of each operating system and the synchronization method corresponding to the status.
[0095] In this embodiment, the electronic device updates the status flag of the sidebar in the local persistent storage, and automatically synchronizes the operating system after the status flag is updated, thereby ensuring the real-time synchronization of the operating system; at the same time, the information of the sidebar in the local persistent storage is synchronously updated to avoid the situation where the status is reset by operations such as turning the machine on and off.
[0096] Reference Figure 6 , Figure 6 It is a flow chart of an embodiment of sidebar adjustment in the sidebar management method provided in the embodiment of the present application.
[0097] This embodiment is step 203, in response to the switching operation of the operating system, adjusting the sidebar according to the operation information through the target operating system corresponding to the switching operation, specifically including steps 401-402:
[0098] 401, in response to an operation of switching the operating system, switching the first operating system in a running state to the second operating system in a background state;
[0099] 402 , initiating an information request to the first operating system through the second operating system, obtaining operation information fed back by the first operating system through the second operating system, and adjusting the sidebar according to the operation information.
[0100] The electronic device uses a synchronous network communication method to send operation information to the operating system in the background state. Since there may be lags in network communication, in order to prevent the second operating system from being synchronized in a timely manner, the electronic device in the embodiment of the present application responds to the operating system switching operation. After the electronic device switches the first operating system in the running state to the second operating system in the background state, the electronic device initiates an information request to the first operating system through the second operating system, obtains the operation information fed back by the first operating system through the second operating system, and adjusts the sidebar according to the operation information to avoid the second operating system being synchronized in a timely manner, thereby ensuring the convenience of sidebar operation management.
[0101] Furthermore, based on the above-mentioned embodiments, the embodiments of the present application may also set a synchronization frequency to ensure the real-time synchronization of operation information, and step 202 includes: obtaining the switching frequency of the operating system, and setting the synchronization frequency according to the switching frequency; and synchronizing the operation information to each operating system according to the synchronization frequency, the state of each operating system and the synchronization method corresponding to the state; in the embodiments of the present application, the electronic device obtains the switching frequency of the operating system, the electronic device sets a synchronization frequency greater than the switching frequency, and the electronic device synchronizes the operation information according to the synchronization frequency to ensure that the sidebar status is synchronized in time.
[0102] Reference Figure 7 , Figure 7 It is a flow chart of an embodiment of obtaining operation information in the sidebar management method provided in the embodiment of the present application.
[0103] In some embodiments of the present application, step 201 responds to a trigger operation on the sidebar and obtains operation information of the trigger operation, specifically including steps 501-502:
[0104] 501. In response to a trigger operation on the sidebar, obtain an operation type of the trigger operation.
[0105] 502. Acquire operation information associated with the trigger operation according to the operation type of the trigger operation.
[0106] The electronic device responds to the trigger operation of the sidebar, and obtains the operation type of the trigger operation. In the present application, the operation type can be an identification of the trigger operation classification. For example, the operation types include: editing operation type, switching mode operation type, closing operation type, etc. The television device obtains the operation information associated with the trigger operation according to the operation type of the trigger operation.
[0107] For example, if the trigger operation is a mode switching operation, the electronic device obtains the target state mode associated with the mode switching operation; and the electronic device queries the preset mapping table to obtain the target operation information corresponding to the target state mode. The preset mapping table refers to the operation information of different modes of the sidebar that are preset. The preset mapping table is automatically saved during the mode setting operation. For example, if the trigger operation is a mode setting operation, the electronic device obtains the state mode set by the mode setting operation, and the operation information of the state mode; wherein the state mode includes a simple mode and a normal mode; the electronic device associates and updates each state mode and the operation information corresponding to the state mode to the preset mapping table.
[0108] like Figure 8a , Figure 8b and Figure 8c As shown, Figure 8aIt is a scene schematic diagram of an embodiment of sidebar mode setting in the sidebar management method provided in an embodiment of the present application; Figure 8b It is a scene diagram of an embodiment of a sidebar normal mode in the sidebar management method provided in an embodiment of the present application; Figure 8c This is a scenario diagram of an embodiment of the sidebar simplicity mode in the sidebar management method provided in an embodiment of the present application. In this embodiment, the scenario that the electronic device can set in the sidebar is to save the information of different modes to a preset mapping table. The trigger operation of the electronic device is a mode switching operation. The preset mapping table is queried to obtain the operation information corresponding to the sidebar mode for output display. The user does not need to perform repeated sidebar editing operations, which facilitates the management of the sidebar. At the same time, different sidebar modes can meet the personalized needs of different users.
[0109] Reference Fig. 9 , Fig. 9 It is a schematic diagram of the structure of an embodiment of the sidebar management device provided in the embodiments of the present application.
[0110] In some embodiments of the present application, a sidebar management device is applied to an electronic device, wherein the electronic device includes at least two operating systems; the sidebar management device includes:
[0111] The acquisition module 601 is used to respond to the trigger operation on the sidebar and acquire the operation information of the trigger operation;
[0112] A synchronization module 602, configured to synchronize the operation information to each of the operating systems according to the state of each of the operating systems and the synchronization mode corresponding to the state; and
[0113] The adjustment module 603 is used to respond to the switching operation of the operating system, and adjust the sidebar according to the operation information through the target operating system corresponding to the switching operation.
[0114] In some embodiments of the present application, the synchronization module 602 is used to:
[0115] Obtaining the status of each of the operating systems;
[0116] Setting the operating system in the running state as the first operating system and setting the operating system in the background state as the second operating system; and
[0117] The operation information is synchronized to the first operating system through a preset inter-process communication, and the operation information is synchronized to the second operating system through a preset network communication.
[0118] In some embodiments of the present application, the sidebar management device, after responding to the triggering operation on the sidebar and obtaining the operation information of the triggering operation, is further used to:
[0119] If a status update notification of the sidebar is monitored, updating the status flag of the sidebar in the local storage; and
[0120] If it is detected that the status flag of the sidebar is updated, the operation information is synchronized to each of the operating systems according to the status of each of the operating systems and the synchronization method corresponding to the status.
[0121] In some embodiments of the present application, the adjustment module 603 in the sidebar management device is further used to:
[0122] In response to the operating system switching operation, the first operating system in the running state is switched to the second operating system in the background state; and
[0123] An information request is initiated to the first operating system through the second operating system, operation information fed back by the first operating system is obtained through the second operating system, and the sidebar is adjusted according to the operation information.
[0124] In some embodiments of the present application, the adjustment module 603 of the sidebar management device is further used to:
[0125] Acquiring a switching frequency of the operating system, and setting a synchronization frequency according to the switching frequency; and
[0126] The operation information is synchronized to each of the operating systems according to the synchronization frequency, the state of each of the operating systems and the synchronization method corresponding to the state.
[0127] In some embodiments of the present application, the acquisition module 601 in the sidebar management device is further used to:
[0128] In response to a trigger operation on the sidebar, obtaining an operation type of the trigger operation; and
[0129] According to the operation type of the trigger operation, operation information associated with the trigger operation is acquired.
[0130] In some embodiments of the present application, the sidebar management device performs the operation type according to the trigger operation to obtain the operation information associated with the trigger operation, including:
[0131] If the trigger operation is a mode switching operation, obtaining a target state mode associated with the mode switching operation; and
[0132] The preset mapping table is queried to obtain the target operation information corresponding to the target state mode.
[0133] In some embodiments of the present application, the sidebar management device is also used to:
[0134] If the trigger operation is a mode setting operation, then acquiring the state mode set by the mode setting operation and the operation information of the state mode; wherein the state mode includes a simple mode and a normal mode;
[0135] Each of the state modes and the operation information corresponding to the state mode are associated and updated to the preset mapping table.
[0136] In an embodiment of the present application, a sidebar management device is applied to an electronic device, which includes at least two operating systems; the sidebar management device responds to a trigger operation on the sidebar, obtains operation information of the trigger operation; synchronizes the operation information to each operating system according to the state of each operating system and the synchronization method corresponding to the state; and responds to a switching operation on the operating system, adjusting the sidebar according to the operation information through the target operating system corresponding to the switching operation; in an embodiment of the present application, at least two operating systems are installed in the electronic device, and the electronic device synchronizes the operation information of the sidebar to each operating system installed in the electronic device according to the state of the operating system and the synchronization method corresponding to the state. After the operating system of the electronic device is switched, the user does not need to manually adjust the sidebar for a second time, and the state of the sidebar can be automatically synchronized, which facilitates the management of the sidebar of the electronic device in the dual operating systems.
[0137] The embodiment of the present invention further provides an electronic device, such as Fig.10 As shown, Fig.10 It is a schematic diagram of the structure of an embodiment of an electronic device provided in the embodiments of the present application.
[0138] An electronic device is integrated with any of the sidebar management devices provided by the embodiments of the present invention, and the electronic device includes:
[0139] one or more processors;
[0140] Memory; and
[0141] One or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the processor to execute the sidebar management method described in any of the above-mentioned sidebar management device embodiments.
[0142] Specifically, the electronic device may include one or more processing core processors 701, one or more computer storage media memories 702, a power supply 703, an input unit 704 and other components. Those skilled in the art will understand that Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0143] The processor 701 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 702, and calling data stored in the memory 702, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 701 may include one or more processing cores; preferably, the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes performance adjustment systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701.
[0144] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store a performance adjustment system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.
[0145] The electronic device also includes a power supply 703 for supplying power to each component. Preferably, the power supply 703 can be logically connected to the processor 701 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 703 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0146] The electronic device may further include an input unit 704, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0147] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail here. Specifically in this embodiment, the processor 701 in the electronic device will load the executable files corresponding to the processes of one or more applications into the memory 702 according to the following instructions, and the processor 701 will run the sidebar management application stored in the memory 702; thereby realizing various functions, as follows:
[0148] In response to a trigger operation on the sidebar, obtaining operation information of the trigger operation;
[0149] Synchronizing the operation information to each of the operating systems according to the state of each of the operating systems and the synchronization method corresponding to the state; and
[0150] In response to a switching operation on an operating system, the target operating system corresponding to the switching operation adjusts the sidebar according to the operation information.
[0151] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer storage medium and loaded and executed by a processor.
[0152] To this end, an embodiment of the present invention provides a computer storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute any sidebar management method provided by an embodiment of the present invention. For example, the computer program may be loaded by a processor to execute the following steps:
[0153] In response to a trigger operation on the sidebar, obtaining operation information of the trigger operation;
[0154] Synchronizing the operation information to each of the operating systems according to the state of each of the operating systems and the synchronization method corresponding to the state; and
[0155] In response to a switching operation on an operating system, the target operating system corresponding to the switching operation adjusts the sidebar according to the operation information.
[0156] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.
[0157] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.
[0158] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0159] The above is a detailed introduction to a sidebar management device provided in an embodiment of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A sidebar management method, characterized in that: The sidebar management method is applied to an electronic device, wherein the electronic device includes at least two operating systems; The sidebar management method comprises: In response to a trigger operation on the sidebar, obtaining operation information of the trigger operation; Synchronizing the operation information to each of the operating systems according to the status of each of the operating systems and the synchronization method corresponding to the status; and In response to a switching operation on an operating system, the target operating system corresponding to the switching operation adjusts the sidebar according to the operation information.
2. The sidebar management method according to claim 1, characterized in that: The step of synchronizing the operation information to each operating system according to the state of each operating system and the synchronization mode corresponding to the state includes: Obtaining the status of each of the operating systems; Setting the operating system in the running state as the first operating system and setting the operating system in the background state as the second operating system; and The operation information is synchronized to the first operating system through a preset inter-process communication, and the operation information is synchronized to the second operating system through a preset network communication.
3. The sidebar management method according to claim 1, characterized in that: After responding to the triggering operation on the sidebar and obtaining the operation information of the triggering operation, the method further includes: If a status update notification of the sidebar is monitored, updating the status flag of the sidebar in the local storage; and If it is detected that the status flag of the sidebar is updated, the operation information is synchronized to each of the operating systems according to the status of each of the operating systems and the synchronization method corresponding to the status.
4. The sidebar management method according to claim 1, characterized in that: The responding to the switching operation of the operating system, adjusting the sidebar according to the operation information by the target operating system corresponding to the switching operation, includes: In response to the operating system switching operation, the first operating system in the running state is switched to the second operating system in the background state; and An information request is initiated to the first operating system through the second operating system, operation information fed back by the first operating system is obtained through the second operating system, and the sidebar is adjusted according to the operation information.
5. The sidebar management method according to claim 1, characterized in that: The step of synchronizing the operation information to each operating system according to the state of each operating system and the synchronization mode corresponding to the state includes: Acquiring a switching frequency of the operating system, and setting a synchronization frequency according to the switching frequency; and The operation information is synchronized to each of the operating systems according to the synchronization frequency, the state of each of the operating systems and the synchronization method corresponding to the state.
6. The sidebar management method according to any one of claims 1 to 5, characterized in that: The step of responding to a trigger operation on the sidebar and obtaining operation information of the trigger operation includes: In response to a trigger operation on the sidebar, obtaining an operation type of the trigger operation; and According to the operation type of the trigger operation, operation information associated with the trigger operation is acquired.
7. The sidebar management method according to claim 6, characterized in that: The acquiring, according to the operation type of the triggering operation, operation information associated with the triggering operation includes: If the trigger operation is a mode switching operation, obtaining a target state mode associated with the mode switching operation; and The preset mapping table is queried to obtain the target operation information corresponding to the target state mode.
8. The sidebar management method according to claim 7, characterized in that: Before querying the preset mapping table to obtain the target operation information corresponding to the target state mode, the method further includes: If the trigger operation is a mode setting operation, then acquiring the state mode set by the mode setting operation and the operation information of the state mode; wherein the state mode includes a simple mode and a normal mode; Each of the state modes and the operation information corresponding to the state mode are associated and updated to the preset mapping table.
9. A sidebar management device, characterized in that: The sidebar management device is applied to an electronic device, and the electronic device includes at least two operating systems; The sidebar management method device: An acquisition module, used to respond to a trigger operation on the sidebar and acquire operation information of the trigger operation; A synchronization module, used for synchronizing the operation information to each of the operating systems according to the state of each of the operating systems and the synchronization mode corresponding to the state; as well as The adjustment module is used to respond to the switching operation of the operating system, and adjust the sidebar according to the operation information through the target operating system corresponding to the switching operation.
10. An electronic device, characterized in that: The electronic device comprises: one or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the sidebar management method according to any one of claims 1 to 8.
11. A computer storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the sidebar management method described in any one of claims 1 to 8.