Notification window display method and electronic equipment
By changing the display state when the display time of the notification window reaches the screen tolerance time in the electronic device screen, the screen afterimage problem caused by the Lingdong Capsule is solved, extending the screen service life and improving the user experience.
Patent Information
- Application Number
- CN202411489720.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-08-08
AI Technical Summary
Lingdong Capsules are displayed on the screen for a long time on the electronic device screen, causing afterimages to appear on the screen, affecting the screen life and user experience.
When the continuous display time of the notification window reaches the screen tolerance time, change the display state of the notification window, for example, switch it to the circular capsule form of the corresponding color and reduce transparency to prevent the appearance of afterimage.
It extends the service life of the screen and improves the user's terminal experience.
Smart Images

Figure CN120448005A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a notification window display method and an electronic device. Background Art
[0002] Smart Capsules, a new notification window format, appear as "capsules" on electronic device screens. They display ongoing tasks, allowing users to check real-time status, perform quick actions, or quickly access applications. Smart Capsules have garnered widespread attention for their simplicity, speed, and efficiency in displaying notifications.
[0003] Normally, the smart capsule needs to be displayed on the screen of the electronic device all the time during the task. However, displaying the same image on the screen of the electronic device for a long time will cause afterimages on the screen, thereby affecting the screen life and the user's terminal usage experience. Summary of the Invention
[0004] To address the above technical issues, the present application provides a notification window display method and electronic device. In this method, when the continuous display duration of a notification window reaches the screen tolerance time, the display state of the notification window is changed to prevent image sticking on the screen, thereby extending the screen life and improving the user's terminal experience.
[0005] In a first aspect, the present application provides a notification window display method, the method comprising: in response to the startup of an electronic device, creating an interval time list, the interval time list being used to store the interval time between the cessation of display of the notification window and the next display; when the notification window is triggered to be displayed for the first time in the status bar, creating an asynchronous display time statistics task, and recording a first system time as an initial time, the first system time being the system time when the notification window is triggered to be displayed for the first time in the status bar; when the display time statistics task is triggered to be executed, determining the continuous display time of the notification window based on a second system time, the initial time and the interval time list; wherein the second system time is the system time when the display time statistics task is triggered to be executed; when the continuous display time is equal to or greater than the screen tolerance time, switching the display form of the notification window.
[0006] In an embodiment of the present application, the electronic device accurately determines the duration of the continuous display of the notification window based on parameters such as the display starting point (initial time) of the notification window and the interval between the notification window being displayed and the notification window being displayed. When the continuous display duration of the notification window reaches the screen tolerance time, the electronic device changes the display state of the notification window to prevent the occurrence of residual images on the screen, thereby extending the screen life and improving the user's terminal usage experience.
[0007] According to the first aspect, after determining the continuous display duration of the notification window, the method further includes: recreating the display duration statistics task when the continuous display duration is less than the screen tolerance time.
[0008] In an embodiment of the present application, the continuous display time of the notification window does not exceed the tolerance time of the screen, the notification window can continue to be displayed on the screen, and the electronic device recreates the asynchronous display time statistics task to continue to count the continuous display time of the notification window.
[0009] According to the first aspect, or any implementation of the first aspect above, the method also includes: when the trigger notification window stops displaying in the status bar, recording the third system time as the first time, the third system time is the system time when the trigger notification window stops displaying in the status bar; destroying the display duration statistics task that has not been triggered.
[0010] In an embodiment of the present application, the time point when the notification window stops displaying in the status bar is recorded so that when the notification window is redisplayed in the subsequent process, the interval between the stop display and the redisplay of the notification window can be determined. In addition, since the notification window has stopped displaying, the electronic device can stop triggering the display duration statistics task for the notification window.
[0011] According to the first aspect, or any implementation of the first aspect above, after recording the third system time as the first time, the method also includes: when the notification window is triggered to be redisplayed in the status bar, creating an asynchronous display duration statistics task, and determining the interval duration between the fourth system time and the first time, the fourth system time being the system time when the notification window is triggered to be redisplayed in the status bar; when the interval duration is less than the first threshold, storing the interval duration in the interval time list.
[0012] In the embodiment of the present application, if the interval duration is less than the first threshold, it means that the interval between the last time the notification window stopped displaying and the current time it started displaying was short, and the electronic device screen did not get a full rest before the new notification window started displaying. Therefore, the last and current displays of the notification window can be considered continuous. To this end, in this embodiment, the interval duration is cached in the interval duration list so that the interval duration can be removed when accumulating multiple display durations of the notification window in subsequent processes.
[0013] According to the first aspect, or any implementation of the first aspect above, after determining the interval length between the fourth system time and the first time, the method also includes: when the interval length is greater than or equal to the first threshold, recording the fourth system time as the new initial time; and formatting the interval length stored in the interval time list.
[0014] In an embodiment of the present application, when the interval duration is greater than or equal to the first threshold, it means that the interval time between the last time the notification window stopped displaying and the current start of displaying is long, and the screen of the electronic device has had a sufficient rest before starting to display a new notification window. In this scenario, it can be regarded as the first time that the electronic device displays the notification window. Therefore, the electronic device re-times the continuous display time of the notification window, that is, the electronic device records the fourth system time as the new initial time. In addition, the electronic device will also format the interval duration cached in the interval time list to facilitate re-accumulation of the interval duration in the new round of display duration statistics.
[0015] According to the first aspect, or any implementation method of the first aspect above, when the display duration statistics task is triggered, the continuous display duration of the notification window is determined based on the second system time, the initial time and the interval time list, including: the continuous display duration of the notification window is the second system time minus the initial time and minus the sum of the interval times in the interval time list.
[0016] In an embodiment of the present application, multiple display durations of the notification window can be accumulated as the continuous display duration of the notification window to accurately determine the continuous display duration of the screen.
[0017] According to the first aspect, or any implementation method of the first aspect above, switching the display form of the notification window includes: switching the notification window to a circular capsule form of a corresponding color, and configuring the transparency of the circular capsule to a preset percentage, which is less than fifty percent.
[0018] In an embodiment of the present application, when the continuous display time of the notification window exceeds the screen tolerance time, the display mode of the notification window is switched to avoid screen ghosting, thereby extending the screen service life and improving the user's terminal usage experience.
[0019] According to the first aspect, or any implementation of the first aspect above, the notification window is a smart capsule or a card corresponding to the smart capsule.
[0020] In an embodiment of the present application, the Lingdong Capsule or the card corresponding to the Lingdong Capsule is usually a notification window with a dark (black) background. If this type of notification window is displayed on the screen of an electronic device for a long time, it will cause afterimages to appear on the screen. Therefore, for this type of notification window, the notification window display method of the embodiment of the present application is executed to prevent afterimages from appearing on the screen, extend the screen service life, and enhance the user's terminal usage experience.
[0021] In a second aspect, the present application provides an electronic device comprising: one or more processors; a memory; and a computer program, wherein the computer program is stored in the memory and, when the computer program is executed by one or more processors, enables the electronic device to execute instructions of the method in the first aspect or any possible implementation of the first aspect.
[0022] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.
[0023] In a third aspect, the present application provides a computer storage medium comprising computer instructions, which, when executed on an electronic device, cause the electronic device to execute the instructions of the method in the first aspect or any possible implementation of the first aspect.
[0024] The third aspect and any implementation of the third aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the third aspect and any implementation of the third aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A schematic diagram of a notification window displayed in an electronic device provided in an embodiment of the present application;
[0026] Figure 2 This is an example diagram of an electronic device screen with afterimages provided in an embodiment of the present application;
[0027] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0028] Figure 4 A software structure block diagram of an electronic device provided in an embodiment of the present application;
[0029] Figure 5 A flowchart of a notification window display method provided in an embodiment of the present application;
[0030] Figure 6 An example diagram of a scenario for determining the continuous display duration of a notification window provided in an embodiment of the present application;
[0031] Figure 7 This is an example diagram of switching the display mode of a notification window provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0033] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0034] In the description and claims of the embodiments of this application, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order of objects. For example, the terms "first target object" and "second target object" are used to distinguish different objects, rather than to describe a specific order of objects.
[0035] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0036] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple processing units" means two or more processing units; "multiple systems" means two or more systems.
[0037] Figure 1 A schematic diagram of a notification window displayed in an electronic device provided in an embodiment of the present application. Figure 1 The notification window in the embodiment of the present application is described.
[0038] Smart Capsules are a new notification window format that appears as a "capsule" on electronic device screens. Located at the top of the screen, they display ongoing tasks, allowing users to view dynamic information about background apps, perform quick actions, and quickly access apps.
[0039] In one embodiment, Figure 1 As shown in (1), the notification window included in the first display interface 101 of the electronic device is a smart capsule 105; Figure 1As shown in (2), the notification window included in the second display interface 102 of the electronic device is a smart capsule 106. Both the smart capsule 105 and the smart capsule 106 correspond to the food delivery application and are used to display the current status of the food delivery. Specifically, the smart capsule 105 displays that the food delivery is in the "pickup" status, and the smart capsule 106 displays that the food delivery is in the "delivery" status.
[0040] In another embodiment, Figure 1 As shown in (3), the notification window included in the third display interface 103 of the electronic device is the smart capsule 107; Figure 1 As shown in (4), the notification window included in the fourth display interface 104 of the electronic device is the card 108 corresponding to the smart capsule. The smart capsule 107 corresponds to the timer application and is used to display the timer identifier and timing duration. The user clicks on the smart capsule 107, and the electronic device displays the card 108 corresponding to the smart capsule 107 in the fourth display interface 104 in response to the user's click operation on the smart capsule 107. The card 108 displays more content than the corresponding smart capsule 107. For example, the card 108 displays the timing duration, the corresponding application name, the timing pause control, and the timing off control. In some examples, the user enters the timer application by clicking on the area outside the control in the card 108; in other examples, the card 108 automatically changes back to the smart capsule 107 after continuously displaying the preset duration (for example, 5s or 10s).
[0041] Typically, if Figure 1 The notification window, shown in the form of a smart capsule or a card corresponding to a smart capsule, remains displayed on the electronic device screen while the task is in progress. The smart capsule and the card corresponding to the smart capsule typically have a dark background (such as black, brown, or blue). If displayed on the electronic device screen for a long time, it may cause image sticking.
[0042] Figure 2 This is an example of an image afterimage that appears on the screen of an electronic device provided in an embodiment of the present application. Figure 2 As shown in (1), the top of the screen of the electronic device displays a smart capsule 201, which is a smart capsule corresponding to the timer and is used to display the timer logo and the time duration. After the smart capsule 201 is displayed for a long time (such as 2 hours) and then stops displaying, as shown in FIG. Figure 2 As shown in (2), there is an afterimage in the area 202 where the smart capsule 201 is originally displayed.
[0043] Displaying the notification window for a long time may cause ghosting on the screen of the electronic device, which may affect the screen life and the user's terminal usage experience.
[0044] To this end, an embodiment of the present application provides a notification window display method and an electronic device. When the continuous display time of the notification window reaches the screen tolerance time, the display state of the notification window is changed to prevent the appearance of afterimages on the screen, thereby extending the screen service life and improving the user's terminal usage experience.
[0045] The notification window display method provided in the embodiments of the present application can be applied to electronic devices, and the electronic devices can be wearable electronic devices (such as watches), portable computers (such as mobile phones), tablet computers, laptop computers, personal computers (PCs), augmented reality (AR) and virtual reality (VR) devices, in-vehicle computers, and other devices. The following embodiments do not impose any special restrictions on the specific form of the electronic device.
[0046] Before describing the technical solutions of the embodiments of the present application, the electronic device of the embodiments of the present application will be described with reference to the accompanying drawings. Figure 3 This is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. It should be understood that, Figure 3 The illustrated electronic device 100 is merely one example of an electronic device, and the electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. Figure 3 The various components shown in the drawings 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.
[0047] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0048] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0049] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0050] The processor 110 may further include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.
[0051] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.
[0052] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0053] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to provide power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160.
[0054] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0055] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0056] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
[0057] The wireless communication module 160 can provide wireless communication solutions for application on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.
[0058] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 , and antenna 2 is coupled to wireless communication module 160 , so that electronic device 100 can communicate with the network and other devices through wireless communication technology.
[0059] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects 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 modify display information.
[0060] 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 (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0061] In the embodiment of the present application, the Smart Capsule and the card corresponding to the Smart Capsule are usually displayed on a dark background (e.g., black, brown, blue, etc.). After being displayed on the screen of an electronic device for a long time, it may cause afterimages to appear on the display screen 194 of the electronic device. Therefore, when the continuous display time of the notification window (the Smart Capsule and the card corresponding to the Smart Capsule) reaches the screen tolerance time, the display state of the notification window is changed to prevent afterimages from appearing on the display screen 194.
[0062] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0063] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0064] 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 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0065] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating 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 can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0066] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0067] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0068] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.
[0069] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, in a location different from that of the display screen 194.
[0070] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.
[0071] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. 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.
[0072] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0073] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.
[0074] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0075] Figure 4 A software structure block diagram of an electronic device 100 provided in an embodiment of the present application.
[0076] The layered architecture of electronic device 100 divides the software into several layers, each with a clear role and division of labor. Layers communicate with each other via software interfaces. In some embodiments, the Android system is divided into four layers: from top to bottom, the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0077] The application layer can include a series of application packages.
[0078] like Figure 4 As shown, the application package can include system interface, recording, call, navigation, takeout, timer and other applications.
[0079] In the embodiments of the present application, the system UI module is a system-level application within the operating system that manages and presents elements in the user interface. The system UI provides user-interactive interface elements, including the status bar, navigation bar, notifications, and quick settings. The system UI module enables users to access system functions and notifications by providing a user interface and interaction methods.
[0080] The status bar is used to display system status information, such as time, battery level, signal strength, etc., and provides quick access to notifications and quick settings.
[0081] The smart capsule module is used to determine the display duration of the notification window (the smart capsule and the card corresponding to the smart capsule), and to control the notification window to change the display state according to the determined display duration.
[0082] The application framework layer provides an application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0083] like Figure 4 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and a system module, etc.
[0084] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0085] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0086] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0087] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0088] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0089] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads, message reminders, and so on. The Notification Manager can also display notifications in the form of icons or scrolling text in the top status bar of the system, such as notifications from applications running in the background. It can also display notifications in the form of dialog windows on the screen, or in the form of smart capsules or cards corresponding to smart capsules. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, and flashing indicator lights.
[0090] In the implementation of this application, the system module may provide a clock access interface to provide the smart capsule module with system time determination services.
[0091] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0092] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0093] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0094] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0095] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0096] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0097] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0098] A 2D graphics engine is a drawing engine for 2D drawings.
[0099] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0100] It is understandable that Figure 4 The layers in the illustrated software structure and the components contained in each layer do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer layers than shown, and each layer may include more or fewer components, which is not limited in the present application.
[0101] Based on the above Figure 3 and Figure 4 An electronic device is provided, and an embodiment of the present application provides a notification window display method, which changes the display state of the notification window when the continuous display time of the notification window reaches the screen tolerance time, prevents the appearance of afterimages on the screen, thereby extending the screen service life and improving the user's terminal usage experience.
[0102] Figure 5 A flowchart of a notification window display method provided in an embodiment of the present application. The method is applied to an electronic device, which includes an application, a smart capsule module and a system module. Among them, the application can be a system application, such as a recorder, a timer, a call application, etc., or a third-party application, such as food delivery, navigation, etc. The smart capsule module is a module in the system interface (System UI), and the system interface module is in the application layer. The system module is a module in the application framework layer. Figure 5 As shown, the notification window display method includes the following steps: step S500-step S523.
[0103] Step S500: When the electronic device is started, the smart capsule module creates an interval time list.
[0104] In an embodiment of the present application, the interval time list is used to store the interval time between the notification window in the status bar ceasing to be displayed and the next time it is displayed. It should be noted that not all interval time between the notification window ceasing to be displayed and the next time it is displayed is stored in the interval time list. Only interval time less than the first threshold is stored in the interval time list. The operation of the electronic device storing the interval time in the interval time list can be seen in the description of step S518 described later and will not be described in detail here.
[0105] Step S501: A first application starts a first service in the first application in response to a first operation of a user.
[0106] In an embodiment of the present application, the first application may be a system application, such as a recorder, a timer, a call application, etc., or a third-party application, such as food delivery, a map, etc.
[0107] The first service in the first application may be, for example, a recording service in a recorder, a timing service in a timer, a call service in a call application, a food ordering service in a food delivery application, or a navigation service in a map application. The first operation is an operation for starting the first service, for example, clicking the start recording control in the recorder.
[0108] Step S502: In response to the user's second operation, the first application reports the first notification window corresponding to the first service to the smart capsule module.
[0109] The second operation is an operation of returning the first application to the background. For example, the second operation may be an operation of returning to the desktop, or the second operation may be an operation of switching applications.
[0110] In some embodiments, the first application is a timer. After the user starts the timer service in the timer, he returns to the desktop. In response to the operation of entering the background, the timer reports the smart capsule corresponding to the timer service to the smart capsule module. In response to the information reported by the timer, the smart capsule module displays the smart capsule corresponding to the timer service in the status bar. The smart capsule corresponding to the timer service can be found in the aforementioned Figure 1 The notification window example provided in (3) of .
[0111] It is understood that if a notification window corresponding to another application (for example, a Smart Capsule corresponding to the recorder) is displayed in the status bar, the Smart Capsule module will display the most recently reported notification window in the status bar upon receiving the first notification window reported by the first application. In this scenario, only the category of the notification window changes, and the display state of the notification window does not change (not from a never displayed state to a displayed state). Therefore, the Smart Capsule module does not execute the following step S503.
[0112] In an embodiment of the present application, if the notification window corresponding to other applications is not displayed in the status bar, the Smart Capsule module receives the first notification window reported by the first application, and when the first notification window is displayed in the status bar, it is determined that the display status of the notification window has changed (from the non-displayed state to the displayed state).
[0113] Step S503: When the display status of the notification window changes from not displayed to displayed, the smart capsule module creates an asynchronous display duration statistics task.
[0114] In an embodiment of the present application, the asynchronous display duration statistics task is a task that is executed after a preset duration, and the preset duration can be set according to actual application conditions. For example, the preset duration is set to 1 minute or 2 minutes.
[0115] In the embodiment of the present application, after the Smart Capsule module creates an asynchronous display duration statistics task, it triggers the execution of the display duration statistics task after a preset duration has elapsed, starting from the task creation time. For example, if the preset duration is set to 1 minute, the asynchronous display duration statistics task is triggered 1 minute after the task is created.
[0116] In the embodiment of the present application, the steps for executing the display duration statistics task can be referred to the detailed description of step S521 described later.
[0117] In some embodiments, as Figure 5 As shown, when the electronic device is started, the smart capsule module creates an interval time list. The interval time list is used to store the interval length between the notification window in the status bar stopping display and the next display.
[0118] Step S504: When the display status of the notification window changes from not displayed to displayed, the smart capsule module sends a system time acquisition request to the system module.
[0119] Step S505: The system module returns the current system time to the smart capsule module in response to the system time acquisition request.
[0120] Step S506: The Smart Capsule module records the returned system time as the initial time.
[0121] The initial time is the starting point for timing the display duration of the notification window.
[0122] In one embodiment of the present application, before recording the returned system time as the initial time, the Smart Capsule module determines whether there is a record of the initial time in the electronic device. If there is no record of the initial time, the Smart Capsule module records the returned system time as the initial time.
[0123] It is understandable that the electronic device has no record of the initial time, indicating that the electronic device has not displayed the notification window in the status bar since it was started. In other words, the display status of the notification window changed from not displayed to displayed this time, which is the first time the notification window was displayed after the electronic device was started. Therefore, the system time when the notification window was triggered to be displayed this time is recorded as the initial time. If the electronic device has a record of the initial time, please refer to the description corresponding to steps S517-S519 described below, and will not be described in detail here.
[0124] In another embodiment provided by the present application, before recording the returned system time as the initial time, the Smart Capsule module determines whether there is a record of a first time. If there is no record of the first time, the returned system time is recorded as the initial time. The first time is the time when the notification window was most recently triggered to stop displaying.
[0125] There is no record of the first time in the electronic device, which means that there is no record of the time when the notification window stopped displaying last time in the electronic device, that is, the display process of this notification window is the first display process of the notification window after the electronic device is started. Therefore, the returned system time can be directly recorded as the initial time.
[0126] In the case where the electronic device has a first-time record, please refer to the description corresponding to steps S517-S519 described later, which will not be described in detail here.
[0127] In the embodiment of the present application, different types of time can be identified by different symbols. For example, the initial time can be identified by R, and the first time can be identified by S.
[0128] Step S507: In response to the third operation, the smart capsule module stops displaying the notification window in the status bar.
[0129] In an embodiment of the present application, the third operation is an operation triggered by a user or automatically triggered by the electronic device to make the notification window invisible in the status bar. The third operation includes at least the following four situations.
[0130] Case 1: The third operation is the user opening an immersive application, for example, a game application.
[0131] The second case: The third operation is the user manually deleting the notification window. For example, the notification window Figure 1 Take the smart capsule of the timer shown in (3) as an example, when the user clicks on the smart capsule, the card corresponding to the smart capsule is called out ( Figure 1 After clicking the card shown in (4) in the card, click the timer close control (the control containing a cross) in the card to manually delete the notification window.
[0132] It should be noted that if multiple services are running simultaneously in the background of an electronic device, such as a recording service and a timing service, when the user clicks the Smart Capsule displayed in the status bar, the cards corresponding to the recording service and the timing service will be called out simultaneously in the display interface. If the user only deletes the card corresponding to one of the services, the notification window corresponding to the other service will still be displayed in the status bar, that is, the Smart Capsule module has not stopped displaying the notification window in the status bar. The user needs to delete the cards corresponding to both the recording service and the timing service to trigger the Smart Capsule module to stop displaying the notification window in the status bar.
[0133] The third case: The third operation is the user entering the application interface corresponding to the notification window. Figure 1 Taking the smart capsule of the timer shown in (3) as an example, when the user clicks the application icon of the timer on the desktop to enter the application interface of the timer, the electronic device stops displaying the smart capsule corresponding to the timing service.
[0134] The fourth case: The third operation is the end operation of the business state. For example, the notification window Figure 1 Taking the smart capsule of the takeaway application shown in (1) and (2) as an example, after the takeaway is delivered (the takeaway service ends), the smart capsule module can stop displaying the smart capsule corresponding to the takeaway application.
[0135] In the embodiment of the present application, when the smart capsule module stops displaying the notification window in the status bar, the display state of the notification window in the electronic device changes from a displayed state to a non-displayed state.
[0136] Step S508: When the display state of the notification window changes from displayed to not displayed, the smart capsule module destroys the untriggered display duration statistics task.
[0137] In the embodiment of the present application, since the notification window has stopped being displayed, the electronic device can stop triggering the display duration statistics task for the notification window.
[0138] Step S509: When the display status of the notification window changes from displayed to not displayed, the smart capsule module sends a system time acquisition request to the system module.
[0139] Step S510: The system module returns the current system time to the smart capsule module in response to the system time acquisition request.
[0140] Step S511: The smart capsule module records the current system time as the first time.
[0141] The first time is used to indicate the time when the notification window stops displaying.
[0142] Step S512: The second application starts the second service in the second application in response to the fourth operation of the user.
[0143] In an embodiment of the present application, the second application can be a system application, such as a recorder, a timer, a call application, etc., or it can be a third-party application, such as food delivery, a map, etc.
[0144] The second service in the second application may be, for example, a recording service in a recorder, a timing service in a timer, a call service in a call application, a food ordering service in a food delivery application, a navigation service in a map application, etc. The first operation is an operation for starting the first service, for example, clicking a start recording control in a recorder.
[0145] It is understandable that the second application and the first application may be the same application or different applications.
[0146] Step S513: The second application reports the second notification window corresponding to the second service to the smart capsule module in response to the user's fifth operation.
[0147] The fifth operation is an operation of returning the second application to the background. For example, the fifth operation may be an operation of returning to the desktop, or the fifth operation may be an operation of switching applications.
[0148] In some embodiments, the second application is a food delivery application. After the user orders food delivery, he returns to the desktop. In response to the operation of entering the background, the food delivery application reports the food delivery service corresponding to the smart capsule to the smart capsule module. In response to the information reported by the food delivery application, the smart capsule module displays the food delivery service corresponding to the smart capsule in the status bar. The smart capsule corresponding to the food delivery service can be found in the aforementioned Figure 1 (1) and Figure 1 The notification window example provided in (2) in .
[0149] Step S514: When the display status of the notification window changes from not displayed to displayed, the smart capsule module creates an asynchronous display duration statistics task.
[0150] In an embodiment of the present application, the asynchronous display duration statistics task is a task that is executed after a preset duration, and the preset duration can be set according to actual application conditions. For example, the preset duration is set to 1 minute or 2 minutes.
[0151] In the embodiment of the present application, after the Smart Capsule module creates an asynchronous display duration statistics task, it triggers the execution of the display duration statistics task after a preset duration has elapsed, starting from the task creation time. For example, if the preset duration is set to 1 minute, the asynchronous display duration statistics task is triggered 1 minute after the task is created.
[0152] In the embodiment of the present application, the steps for executing the display duration statistics task can be referred to the detailed description of step S521 described later.
[0153] Step S515: When the display status of the notification window changes from not displayed to displayed, the smart capsule module sends a system time acquisition request to the system module.
[0154] Step S516: The system module returns the current system time to the smart capsule module in response to the system time acquisition request.
[0155] Step S517: The smart capsule module determines the interval between the returned system time and the first time.
[0156] In one embodiment of the present application, before determining the interval between the returned system time and the first time, the Smart Capsule module determines whether there is a record of the initial time in the electronic device. If there is a record of the initial time, the Smart Capsule module determines the interval between the returned system time and the first time.
[0157] It is understandable that there is a record of the initial time in the electronic device, indicating that after the electronic device is started and before the current notification window is displayed, the notification window has been displayed in the status bar at least once, and the displayed notification window has now stopped displaying. In an embodiment of the present application, if the interval between the notification window stopping display and the next start of display is short (for example, less than 1 minute), it is considered that the screen of the electronic device has not been fully rested. In order to effectively determine the continuous display duration of the notification window on the screen, the multiple display durations of the notification window can be accumulated as the continuous display duration of the notification window. Therefore, in the case of a record of the initial time, the smart capsule module determines the time interval between the returned system time and the first time, and thus performs subsequent operations based on the time interval.
[0158] The situation where there is no initial time record in the electronic device can be referred to the detailed description in the aforementioned step S506, which will not be repeated here.
[0159] In another embodiment provided in the present application, before determining the interval between the returned system time and the first time, the Smart Capsule module determines whether there is a record of the first time in the electronic device. If there is a record of the first time, the Smart Capsule module determines the interval between the returned system time and the first time.
[0160] In the case where there is a record of the first time in the electronic device, it means that after the electronic device is started and before the notification window is displayed this time, the notification window has been displayed in the status bar at least once, and the displayed notification window has now stopped displaying. In an embodiment of the present application, if the interval between the notification window stopping display and the next start of display is short (for example, less than 1 minute), it is considered that the screen of the electronic device has not been rested. In order to effectively determine the continuous display duration of the notification window on the screen, the multiple display durations of the notification window can be accumulated as the continuous display duration of the notification window. Therefore, in the case of a record of the first time, the smart capsule module determines the time interval between the returned system time and the first time, and thus performs subsequent operations based on the time interval.
[0161] The situation where there is no first time record in the electronic device can be referred to the detailed description in the aforementioned step S506, which will not be repeated here.
[0162] Step S518: When the interval duration is less than the first threshold, the smart capsule module caches the interval duration into the interval time list.
[0163] In an embodiment of the present application, the first threshold can be set based on the screen performance of the electronic device, for example, the screen display recovery time. If the screen of the electronic device has a strong recovery capability, the first threshold can be set shorter, for example, to 1 minute; if the screen of the electronic device has a weak recovery capability, the first threshold can be set longer, for example, to 2 minutes.
[0164] In the embodiment of the present application, if the interval duration is less than the first threshold, it means that the interval between the last time the notification window stopped displaying and the current time it started displaying was short, and the electronic device screen did not get a full rest before the new notification window started displaying. Therefore, the last and current displays of the notification window can be considered continuous. To this end, in this embodiment, the interval duration is cached in the interval duration list so that the interval duration can be removed when accumulating multiple display durations of the notification window in subsequent processes.
[0165] Step S519: When the interval duration is greater than or equal to the first threshold, the smart capsule module records the returned system time as the new initial time.
[0166] In the embodiment of the present application, if the interval duration is greater than or equal to the first threshold, it means that the interval between the last time the notification window stopped displaying and the current time it started displaying was long, and the electronic device's screen had a sufficient rest before the new notification window began displaying. In this scenario, it can be considered that the electronic device is displaying the notification window for the first time. Therefore, the electronic device re-times the continuous display time of the notification window, that is, the electronic device records the returned system time as the new initial time.
[0167] The step of the smart capsule module creating an asynchronous display duration statistics task can be found in the aforementioned step S504 and will not be repeated here.
[0168] In an embodiment of the present application, when the interval duration is greater than or equal to the first threshold, the smart capsule module also needs to format the interval duration cached in the interval time list so as to re-accumulate the interval duration in a new round of display duration statistics.
[0169] Step S520: When executing the display duration statistics task, the smart capsule module determines the continuous display duration of the notification window based on the system time, initial time and interval time list when the task is triggered.
[0170] The duration of the notification window display is the result of subtracting the initial time from the system time when the task is triggered, and subtracting the sum of the interval durations in the interval time list. That is, the duration of the notification window display = the system time when the task is triggered - the initial time - the sum of the interval durations in the interval time list.
[0171] It should be noted that the step of executing the display duration statistics task (step S521) can be executed when the display duration statistics task is triggered, for example, when the display duration statistics task is created for a preset time (1 minute).
[0172] Figure 6 This is an example diagram of a scenario for determining the continuous display duration of a notification window provided in an embodiment of the present application. Figure 6 As shown, as time goes by, the notification windows displayed in sequence on the screen of the electronic device are notification windows A, B, C, D, E, F and G.
[0173] At time t0, notification window A is displayed in the status bar of the electronic device. The electronic device records the display time t0 of notification window A as the initial time R1. The display duration of notification window A is t1-t0. At time t1, notification window B is displayed in the status bar of the electronic device. The display duration of notification window B is t2-t1. Since there is no time interval between the display processes of notification window A and notification window B, the stop display time t2 of notification window B is recorded as the stop display time S1 of the notification window. At time t3, notification window C is displayed in the status bar of the electronic device. The display time t3 of notification window C is recorded as the redisplay time T1.
[0174] The time interval between the redisplay time T1 and the last stop display time S1 is determined. This time interval is 1 minute, which is equal to the first threshold (1 minute). It can be assumed that the electronic device screen, after displaying notification window B, had a sufficient rest before displaying notification window C. Therefore, the timing of the continuous display of the notification window in this round ends. In this round, the continuous display time of the notification window is t2-t0.
[0175] The display time t3 of the notification window C is recorded as the new initial time R2 to start a new round of timing for the continuous display of the notification window.
[0176] The stop display time t4 of notification window C is recorded as the stop display time S2 of the notification window. At time t5, notification window D is displayed in the status bar of the electronic device, and the display time t5 of the notification window D is recorded as the redisplay time T2. The time interval between the redisplay time T2 and the last stop display time S2 is determined. The time interval is 1 minute and 10 seconds, which is greater than the first threshold (1 minute). It can be considered that the screen of the electronic device has had a sufficient rest after displaying notification window C before displaying notification window D. Therefore, the timing of the continuous display of the notification window is ended. In this round, the continuous display time of the notification window is t4-t3.
[0177] The display time t5 of the notification window D is recorded as the new initial time R3 to start a new round of timing for the continuous display of the notification window.
[0178] The time t6 at which notification window D stops displaying is recorded as the stop display time S3 of the notification window. At time t7, notification window E is displayed in the status bar of the electronic device, and the display time t7 of notification window E is recorded as the redisplay time T3. The time interval between the redisplay time T3 and the last stop display time S3 is determined. This time interval is 59 seconds, which is less than the first threshold (1 minute). It can be considered that the screen of the electronic device displayed notification window E without a sufficient rest after displaying notification window D. Therefore, it can be considered that the electronic device displays the notification window continuously, and the continuous display of the notification window continues to be timed.
[0179] Since there is no time interval between the display processes of notification window E and notification window F, the stop display time t9 of notification window F is recorded as the stop display time S4 of the notification window. At time t10, notification window G is displayed in the status bar of the electronic device, and the display time t10 of the notification window G is recorded as the redisplay time T4. Determine the time interval between the redisplay time T4 and the last stop display time S4. The time interval is 1 minute and 20 seconds, which is greater than the first threshold (1 minute). It can be considered that the screen of the electronic device displayed notification window G after a sufficient rest after displaying notification window F. Therefore, the timing of the continuous display of the notification window is ended. In this round, the continuous display time of the notification window is t9-t5-(t7-t6).
[0180] In the embodiment of the present application, after determining the continuous display duration of the notification window, it is necessary to determine whether the continuous display duration of the notification window exceeds the screen tolerance time (the second threshold described below). It is understandable that the tolerance time of the screen of different electronic devices is different, and the tolerance time refers to the maximum display time when displaying the same image without leaving an afterimage.
[0181] Step S521: When the continuous display duration is less than the second threshold, the smart capsule module recreates an asynchronous display duration statistics task.
[0182] If the continuous display duration is less than the second threshold, it indicates that the continuous display duration of the notification window has not exceeded the screen tolerance time, and the notification window can continue to be displayed on the screen. The smart capsule module recreates an asynchronous display duration statistics task to continue to count the continuous display duration of the notification window.
[0183] Step S522: When the continuous display time is greater than or equal to the second threshold, the smart capsule module switches the display mode of the notification window.
[0184] If the continuous display duration is greater than or equal to the second threshold, it indicates that the notification window has been displayed for a period of time that has reached or exceeded the screen's tolerance time. If the notification window continues to be displayed, a residual image will appear on the screen when the notification window stops displaying, thereby reducing the screen's service life. To prevent residual images on the screen, if the notification window is displayed for a period of time greater than or equal to the second threshold, the Smart Capsule module switches the display mode of the notification window in the status bar.
[0185] In an embodiment of the present application, a method for switching the display form of a notification window includes: switching the notification window to a corresponding colored circular capsule form, and configuring the transparency of the colored circular capsule to a preset percentage. The preset percentage is less than 50%, for example, the preset percentage can be 20% or 30%.
[0186] It should be noted that the corresponding colors of the notification windows of different applications are generally different after they are switched to the form of colored round capsules. For example, after the notification window of the timer is switched to the form of a colored round capsule, the corresponding color may be blue; after the notification window of the recorder is switched to the form of a colored round capsule, the corresponding color may be red. The color of the colored round capsule is reported by the application when reporting the notification window (for example, in the aforementioned step S502). When the display form of the notification window is switched, the smart capsule module displays a round capsule of the corresponding color in the status bar based on the color reported in advance. The colored round capsule contains an application identifier, which can dynamically change to indicate that the service is in a running state, or it can be static to indicate that the service is in a stopped state.
[0187] Figure 7 This is an example diagram of a display mode switching of a notification window provided in an embodiment of the present application. Figure 7 In the example, the notification window is a smart capsule corresponding to the timer, and the display mode switching of the notification window is explained. Figure 7 As shown in (1), the notification window displayed in the fifth display interface 701 of the electronic device is the smart capsule 703 corresponding to the timer. When the continuous display time of the notification window of the electronic device is greater than or equal to the second threshold (screen tolerance time), the electronic device changes the display form of the notification window from Figure 7 The smart capsule 703 with a dark background (eg, black) shown in (1) is switched to Figure 7 The colored circular capsule 704 shown in (2) has a transparency of 20%, and the color corresponding to the colored circular capsule 704 corresponds to the timer application, such as light blue (RGB values 137, 207, 240). The colored circular capsule 704 includes a timer logo, such as Figure 7 The hands of a clock shown in (2).
[0188] It should be noted that the timer identifier included in the colored circular capsule 704 can be static or dynamic. If the timer identifier is static, it indicates that the timer service is in a suspended state; if the timer identifier is dynamic, it indicates that the timer service is in a running state.
[0189] In the embodiment of the present application, the display form of the notification window that is initially switched is as follows: Figure 7 As shown in the colored circular capsule 704 shown in (2), over time, Figure 7 The colored round capsule 704 shown in (2) becomes Figure 7The colored circular capsule 705 shown in (3) in FIG. That is, in the colored circular capsule corresponding to the timer shown in the sixth display interface 702, the timer logo is dynamic, and the pointer in the clock can dynamically rotate in a clockwise direction to indicate that the timer's timing service is in operation.
[0190] In the notification window display method provided in the embodiment of the present application, the continuous display time of the notification window is effectively counted. When the continuous display time of the notification window exceeds the screen tolerance time, the display form of the notification window is switched to avoid screen ghosting, thereby extending the screen service life and improving the user's terminal usage experience.
[0191] In an embodiment of the present application, a cloud push configuration switch for the notification window switching method can be set for an electronic device. The cloud push configuration switch is used to indicate whether the electronic device adopts the notification window switching method in the embodiment of the present application.
[0192] After the electronic device is started, it determines whether to adopt the notification window switching method provided in the embodiment of the present application based on the cloud push configuration switch setting on the cloud side. When the cloud push configuration switch is configured to be on, it is determined to adopt the notification window switching method provided in the embodiment of the present application. In this case, based on the above Figure 5 The provided notification window switching method implements screen ghosting prevention. When the cloud push configuration switch is configured to be off, the notification window switching method provided in the embodiment of the application is determined not to be used. In this case, the notification window is displayed according to the conventional display method, for example, it is displayed as a smart capsule with a black background.
[0193] It is understandable that, in order to implement the above functions, the electronic device includes hardware and / or software modules that perform the corresponding functions. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.
[0194] The steps performed by the electronic device in the notification window display method provided in the embodiment of the present application can also be performed by a chip system included in the electronic device, wherein the chip system may include a processor and a Bluetooth chip. The chip system can be coupled to a memory so that when the chip system is running, it calls a computer program stored in the memory to implement the steps performed by the electronic device 100. The processor in the chip system can be an application processor or a processor other than an application processor.
[0195] This embodiment further provides a computer-readable medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method in the above-mentioned embodiment.
[0196] This embodiment further provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the above-mentioned related steps to implement the method in the above-mentioned embodiment.
[0197] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the methods in the above-mentioned method embodiments.
[0198] Among them, the electronic device, computer-readable medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0199] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0200] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0201] The units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, the functional units in the various embodiments of the present application may be integrated into a processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software functional units.
[0202] Any content of each embodiment of the present application, as well as any content of the same embodiment, can be freely combined. Any combination of the above contents is within the scope of the present application. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for making a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0203] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A notification window display method, characterized in that: The method comprises: In response to the electronic device being started, creating an interval time list, wherein the interval time list is used to store the interval length between when the notification window stops being displayed and when it is displayed next time; When the trigger notification window is first displayed in the status bar, an asynchronous display duration statistics task is created, and a first system time is recorded as an initial time, where the first system time is the system time when the trigger notification window is first displayed in the status bar; When the display duration statistics task is triggered, determining the continuous display duration of the notification window based on the second system time, the initial time, and the interval time list; wherein the second system time is the system time when the display duration statistics task is triggered; When the continuous display time is equal to or greater than the screen tolerance time, the display mode of the notification window is switched.
2. The method according to claim 1, characterized in that After determining the continuous display duration of the notification window, the method further includes: When the continuous display duration is less than the screen tolerance duration, the display duration statistics task is recreated.
3. The method according to claim 2, characterized in that The method further comprises: When the trigger notification window stops displaying in the status bar, recording a third system time as the first time, wherein the third system time is the system time when the trigger notification window stops displaying in the status bar; Destroy the untriggered display duration statistics task.
4. The method according to claim 3, characterized in that After recording the third system time as the first time, the method further includes: When the notification window is triggered to be redisplayed in the status bar, an asynchronous display duration statistics task is created, and an interval between a fourth system time and the first time is determined, where the fourth system time is the system time when the notification window is triggered to be redisplayed in the status bar; When the interval duration is less than the first threshold, the interval duration is stored in the interval time list.
5. The method according to claim 4, characterized in that After determining the interval between the fourth system time and the first time, the method further includes: When the interval duration is greater than or equal to a first threshold, recording the fourth system time as the new initial time; The interval durations stored in the interval time list are formatted.
6. The method according to claim 1, characterized in that When the display duration statistics task is triggered, determining the continuous display duration of the notification window based on the second system time, the initial time, and the interval time list includes: The continuous display duration of the notification window is the sum of the second system time minus the initial time and the sum of the interval durations in the interval time list.
7. The method according to claim 1, characterized in that The switching of the display mode of the notification window includes: The notification window is switched to a circular capsule form of a corresponding color, and the transparency of the circular capsule is configured to a preset percentage, which is less than fifty percent.
8. The method according to any one of claims 1 to 7, characterized in that The notification window is the Lingdong Capsule or the card corresponding to the Lingdong Capsule.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; Memory; and a computer program, wherein the computer program is stored in the memory, and when the computer program is executed by the one or more processors, causes the electronic device to perform the method according to any one of claims 1 to 8.
10. A computer storage medium, characterized in that The method comprises computer instructions, which, when executed on an electronic device, enable the electronic device to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Prompt message display method and electronic equipment
CN110266875A
Method for starting screen protection of display equipment and display equipment
CN111432257A
Display equipment and display control method for preventing burn-in
CN113301419A
Display device and screen protection method
CN113655936A
Information processing method and device and storage medium
CN113934331A