Floating window display method and device, electronic equipment, storage medium and program product
By dynamically adjusting the number or size of floating windows according to the temperature threshold in electronic devices, the high power consumption and temperature increase caused by floating window display are solved, and the user experience and device availability are improved.
Patent Information
- Application Number
- CN202410922711.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-11-12
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Electronic devices consume too much power when displaying multiple floating windows, causing temperature to rise and may trigger shutdown, affecting the user experience.
In a scenario where the electronic device displays at least two target floating windows, when the temperature exceeds the threshold, the number of floating windows displayed is reduced to avoid excessive temperature triggering shutdown. The specific method includes determining that the floating window to be closed and exiting its display, or reducing the display size of the floating window until the temperature decreases.
By reducing the number or size of floating windows, the temperature of electronic devices is reduced, the power is avoided, the user experience is improved, and the device is extended.
Smart Images

Figure CN118939358A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic devices, and more specifically, to a method, device, electronic device, storage medium and program product for displaying a floating window. Background Art
[0002] With the development of science and technology, electronic devices are used more and more widely, with more and more functions, and have become one of the necessities in people's daily life. In order to meet the user's demand for using multiple applications in the same time period, more and more electronic devices can support floating windows, where floating windows are suspended on the display interface of the electronic device, and the electronic device can display multiple applications in the same display interface through floating windows. However, when electronic devices display floating windows, the power consumption of the electronic devices is often too high, resulting in poor user experience. Summary of the invention
[0003] In view of the above problems, the present application proposes a method, device, electronic device, storage medium and program product for displaying a floating window to solve the above problems.
[0004] In a first aspect, an embodiment of the present application provides a method for displaying a floating window, which is applied to an electronic device, and the method includes: displaying a first number of target floating windows, wherein the first number is at least two; if the temperature of the electronic device is greater than or equal to a temperature threshold, reducing the display of the first number of target floating windows to displaying a second number of target floating windows.
[0005] In a second aspect, an embodiment of the present application provides a floating window display device, which is applied to an electronic device, and the device includes: a target floating window display module, used to display a first number of target floating windows, wherein the first number is at least two; a target floating window reduction module, used to reduce the display of the first number of target floating windows to a second number of target floating windows if the temperature of the electronic device is greater than or equal to a temperature threshold.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
[0008] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and the computer program implements the above method when executed by a processor.
[0009] The display method, device, electronic device, storage medium and program product of the floating window provided in the embodiments of the present application display a first number of target floating windows, wherein the first number is at least two, and if the temperature of the electronic device is greater than or equal to the temperature threshold, the display of the first number of target floating windows is reduced to the display of the second number of target floating windows. In this way, in a scenario where the electronic device displays at least two target floating windows, if the temperature is too high, then by reducing the number of displayed target floating windows, the electronic device can be prevented from triggering shutdown when the temperature is too high, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] 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 application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0011] Figure 1 A schematic diagram showing a flow chart of a method for displaying a floating window provided in an embodiment of the present application is shown;
[0012] Figure 2 A first interface schematic diagram of an electronic device provided in an embodiment of the present application is shown;
[0013] Figure 3 A second interface schematic diagram of an electronic device provided in an embodiment of the present application is shown;
[0014] Figure 4 A schematic diagram showing a flow chart of a method for displaying a floating window provided in an embodiment of the present application is shown;
[0015] Figure 5 A third interface schematic diagram of an electronic device provided in an embodiment of the present application is shown;
[0016] Figure 6 This application shows Figure 4 The flowchart of step S230 of the method for displaying a floating window is shown;
[0017] Figure 7 A fourth interface schematic diagram of an electronic device provided in an embodiment of the present application is shown;
[0018] Figure 8 A schematic diagram showing a flow chart of a method for displaying a floating window provided in an embodiment of the present application is shown;
[0019] Fig. 9 A fifth interface schematic diagram of an electronic device provided in an embodiment of the present application is shown;
[0020] Fig.10 A module block diagram of a display device for a floating window provided by an embodiment of the present application is shown;
[0021] Fig.11 A block diagram of an electronic device for executing a method for displaying a floating window according to an embodiment of the present application is shown;
[0022] Fig.12 A storage unit for storing or carrying a program code for implementing a method for displaying a floating window according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0024] In order to meet the needs of users, electronic devices gradually begin to support the display of more than one floating window. For example, electronic devices begin to support the simultaneous display of two floating windows. However, when an electronic device displays more than one floating window, if high-load applications are running on all of them, the power consumption is often high, which can easily cause the electronic device to shut down due to overheating, resulting in a poor user experience.
[0025] In view of the above problems, the inventors have discovered after long-term research and proposed the floating window display method, device, electronic device, storage medium and program product provided in the embodiments of the present application. In the scenario where at least two target floating windows are displayed on the electronic device, if the temperature is too high, the number of displayed target floating windows can be reduced to avoid the electronic device from triggering shutdown when the temperature is too high, thereby improving the user experience. Among them, the specific floating window display method is described in detail in the subsequent embodiments.
[0026] See also Figure 1 , Figure 1 The flowchart of the method for displaying a floating window provided by an embodiment of the present application is shown. The method for displaying a floating window is used in a scenario where an electronic device displays at least two target floating windows. If the temperature is too high, the number of displayed target floating windows can be reduced to avoid the electronic device from triggering shutdown when the temperature is too high, thereby improving the user experience. In a specific embodiment, the method for displaying a floating window is applied to Fig.10 The display device 200 of the floating window and the electronic device 100 equipped with the display device 200 of the floating window are shown. Fig.11 ). The following will take an electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic device used in this embodiment may include a smart phone, a tablet computer, etc., which is not limited here. Figure 1The process shown is described in detail, and the method for displaying the floating window may specifically include the following steps:
[0027] Step S110: Display a first number of target floating windows, where the first number is at least two.
[0028] In this embodiment, the electronic device may display a first number of target floating windows, wherein the first number is at least two, for example, the first number may include two, three, four, etc., which is not limited here.
[0029] Among them, the first number of target floating windows can each correspond to a different application. As an example, assuming that the first number of target floating windows includes a first target floating window and a second target floating window, the first target floating window can correspond to a first application, and the second target floating window can correspond to a second application, and the first application and the second application are different. For example, the first application is an XX video application, and the second application is an XX browser application.
[0030] In some implementations, the first number of target floating windows may be displayed in a floating manner in a display interface of the electronic device. Optionally, the display interface may include a lock screen interface, a desktop, an application interface, etc., which are not limited here.
[0031] In some embodiments, during the process of displaying the first number of target floating windows, there may be overlapping areas between the first number of target floating windows, or there may not be overlapping areas. Optionally, when there are overlapping areas between the first number of target floating windows, the first number of target floating windows may partially overlap or completely overlap, which is not limited here.
[0032] In some embodiments, in the process of displaying a first number of target pop-up windows, the display attributes of the first number of target pop-up windows may all be fixed, may be partially fixed and partially dynamically set according to demand, or may all be dynamically set according to usage requirements. Optionally, the display attributes may include display position, display size, display position relationship, etc., which are not limited here. Taking the display attribute as the display position relationship as an example, assuming that the first number of target pop-up windows includes a first target pop-up window and a second target pop-up window, and the display position of the first target pop-up window is located to the left of the display position of the second target pop-up window, then, in the subsequent application process, the display position of the first target pop-up window can be switched to the right of the display position of the second target pop-up window according to the user's dragging operation on the first target pop-up window and / or the second target pop-up window.
[0033] In some embodiments, the display sizes of the first number of target pop-up windows may be the same or different, which is not limited here. As an example, the display sizes of the first number of target pop-up windows may be the same by default, and subsequently, they may be adjusted to be different based on the user's adjustment operation; or the display sizes of the first number of target pop-up windows may be different by default, and subsequently, they may be adjusted to be the same based on the user's adjustment operation.
[0034] See also Figure 2 , Figure 2 FIG. 1 shows a first interface schematic diagram of an electronic device provided in an embodiment of the present application. Figure 2 As shown, the electronic device may display a first target floating window and a second target floating window.
[0035] Step S120: If the temperature of the electronic device is greater than or equal to the temperature threshold, the display of the first number of target floating windows is reduced to a second number of target floating windows.
[0036] In some embodiments, during the process of displaying the first number of target floating windows, the temperature of the electronic device may be monitored and a temperature monitoring result may be obtained. If it is determined based on the temperature monitoring result that the temperature of the electronic device is greater than or equal to a temperature threshold, the display of the first number of target floating windows may be reduced to the display of the second number of target floating windows; if it is determined based on the temperature monitoring result that the temperature of the electronic device is less than the temperature threshold, the display of the first number of target floating windows may be maintained.
[0037] As an implementable manner, during the process of displaying the first number of target floating windows, the shell temperature of the electronic device may be monitored and a temperature monitoring result may be obtained. If it is determined based on the temperature monitoring result that the shell temperature of the electronic device is greater than or equal to a temperature threshold, the display of the first number of target floating windows may be reduced to the display of the second number of target floating windows; if it is determined based on the temperature monitoring result that the shell temperature of the electronic device is less than the temperature threshold, the display of the first number of target floating windows may be maintained.
[0038] Optionally, the temperature threshold can be used to characterize a critical temperature value that triggers the electronic device to shut down, that is, when the temperature of the electronic device is greater than or equal to the temperature threshold, the electronic device may be triggered to shut down because the temperature of the electronic device is too high, and when the temperature of the electronic device is less than the temperature threshold, the electronic device will not be triggered to shut down because the temperature of the electronic device is too high. In some embodiments, the temperature threshold can be set to the same value for different electronic devices, or, for different electronic devices, the temperature threshold can be set to different values according to the properties of the electronic device, which is not limited here.
[0039] In some embodiments, during the process of displaying the first number of target floating windows, the temperature of the electronic device can be monitored in real time, at preset time intervals, at preset time points, or according to other preset rules, etc., which are not limited here.
[0040] In this embodiment, the electronic device can reduce the display of a first number of target floating windows to a second number of target floating windows. It can be understood that the first number is greater than the second number. Among them, the second number may include one, two, three, etc., which are not limited here. As an example, assuming that the second number is one, then when the first number is two, it can be reduced from displaying two target floating windows to displaying one target floating window, and when the first number is three, it can be reduced from displaying three target floating windows to displaying one target floating window. As another example, assuming that the second number is two, then when the first number is three, it can be reduced from displaying three target floating windows to displaying two target floating windows, and when the first number is four, it can be reduced from displaying four target floating windows to displaying two target floating windows.
[0041] Optionally, the second number is one. That is, no matter how much the first number is (that is, no matter how many target floating windows the electronic device previously displayed), when the temperature of the electronic device is greater than or equal to the temperature threshold, only one target floating window is displayed to minimize the temperature of the electronic device.
[0042] In some embodiments, reducing the number of target floating windows from displaying a first number to displaying a second number of target floating windows may include: determining a rising speed of the temperature of the electronic device, and reducing the number of target floating windows from displaying the first number to displaying the second number of target floating windows based on the rising speed. Optionally, the rising speed may be negatively correlated with the second number, that is, the faster the rising speed, the fewer floating windows can be retained for display, and the smaller the second number can be, and the slower the rising speed, the more floating windows can be retained for display, and the larger the second number can be.
[0043] In some embodiments, reducing the display of a first number of target pop-up windows to a second number of target pop-up windows may include: reducing the display of a specified number (such as one) of target pop-up windows from the first number of target pop-up windows, and determining the temperature change trend of the electronic device after reducing the display of the specified number of target pop-up windows, wherein, if the temperature change trend indicates that the temperature of the electronic device has a maintaining trend or an increasing trend, continuing to reduce the display of the target pop-up windows from the remaining displayed target pop-up windows until the number of the remaining displayed target pop-up windows is the second number; if the temperature change trend indicates that the temperature of the electronic device has a decreasing trend, the remaining target pop-up windows may be kept displayed.
[0044] See also Figure 3 , Figure 3 FIG. 2 shows a second interface schematic diagram of an electronic device provided in an embodiment of the present application. Figure 3 As shown, the electronic device can be Figure 2 As shown, the display of the first target floating window and the second target floating window is reduced to displaying the first target floating window. At this time, the second target floating window exits the display.
[0045] A method for displaying floating windows provided in an embodiment of the present application displays a first number of target floating windows, wherein the first number is at least two, and if the temperature of the electronic device is greater than or equal to a temperature threshold, the number of target floating windows displayed is reduced from the first number to the second number. In this way, in a scenario where the electronic device displays at least two target floating windows, if the temperature is too high, by reducing the number of target floating windows displayed, it is possible to avoid the electronic device being triggered to shut down when the temperature is too high, thereby improving the user experience.
[0046] See also Figure 4 , Figure 4 A schematic diagram of a method for displaying a floating window provided by an embodiment of the present application is shown. The method is applied to an electronic device. Figure 4 The process shown is described in detail, and the method for displaying the floating window may specifically include the following steps:
[0047] Step S210: Display a first number of target floating windows, where the first number is at least two.
[0048] For the detailed description of step S210, please refer to step S110, which will not be repeated here.
[0049] Step S220: If the temperature of the electronic device is greater than or equal to the temperature threshold, determining a floating window to be closed from the first number of target floating windows.
[0050] In this embodiment, if it is determined that the temperature of the electronic device is greater than or equal to the temperature threshold, the floating window to be closed may be determined from the first number of target floating windows. Optionally, the number of the floating window to be closed may be at least one.
[0051] In some embodiments, the number of floating windows to be closed may be determined according to the first number. As an example, assuming that the first number is two, the number of floating windows to be closed may be one; assuming that the first number is three, the number of floating windows to be closed may be one or two; assuming that the first number is four, the number of floating windows to be closed may be one, two or three, which is not limited here.
[0052] As an implementable manner, determining the floating window to be closed from the first number of target floating windows may include: determining the first activated target floating window from the first number of target floating windows as the floating window to be closed. It can be understood that, among the first number of target floating windows, the target floating window with an earlier activation time has a lower user usage probability or usage expectation than the target floating window with a later activation time. Therefore, the first activated target floating window may be determined as the floating window to be closed, while the target floating window with a later activation time may continue to be displayed, so as to avoid the electronic device triggering an over-temperature shutdown while reducing the impact on the user.
[0053] Optionally, when it is determined that the temperature of the electronic device is greater than or equal to a temperature threshold, the startup time corresponding to each of the first number of target floating windows can be determined, and based on the startup time corresponding to each of the first number of target floating windows, the firstly started target floating window among the first number of target floating windows can be determined as the floating window to be closed.
[0054] Optionally, when it is determined that the temperature of the electronic device is greater than or equal to a temperature threshold, the startup order corresponding to each of the first number of target floating windows can be determined, and based on the startup order corresponding to each of the first number of target floating windows, the firstly started target floating window among the first number of target floating windows can be determined as the floating window to be closed.
[0055] As another practicable method, determining the floating window to be closed from the first number of target floating windows may include: determining the target floating window with the highest load from the first number of target floating windows as the floating window to be closed. It can be understood that, among the first number of target floating windows, the target floating window with a higher load is more likely to cause the electronic device to heat up than the target floating window with a lower load, and is also more likely to cause the electronic device to trigger an over-temperature shutdown. Therefore, the target floating window with the highest load can be determined as the floating window to be closed, while the target floating window with a lower load continues to be displayed, so as to minimize the electronic device from triggering an over-temperature shutdown.
[0056] Optionally, when it is determined that the temperature of the electronic device is greater than or equal to the temperature threshold, the load corresponding to each of the first number of target floating windows may be determined, and based on the load corresponding to each of the first number of target floating windows, the target floating window with the highest load from the first number of target floating windows may be determined as the floating window to be closed. Determining the load corresponding to each of the first number of target floating windows may include: determining the application corresponding to each of the first number of target floating windows, and determining the load corresponding to each of the first number of target floating windows based on the application corresponding to each of the first number of target floating windows.
[0057] As another practicable manner, determining the floating window to be closed from the first number of target floating windows may include: determining the target floating window with the lowest usage frequency from the first number of target floating windows as the floating window to be closed. It can be understood that, among the first number of target floating windows, the target floating window with the lowest usage frequency has a lower user probability or expectation of use than the target floating window with the highest usage frequency. Therefore, the target floating window with the lowest usage frequency may be determined as the floating window to be closed, while the target floating window with the highest usage frequency may continue to be displayed, so as to avoid the electronic device triggering an over-temperature shutdown while reducing the impact on the user.
[0058] Optionally, when it is determined that the temperature of the electronic device is greater than or equal to the temperature threshold, the usage frequencies corresponding to the first number of target floating windows can be determined, and based on the usage frequencies corresponding to the first number of target floating windows, the first activated target floating window from the first number of target floating windows is determined as the floating window to be closed. Determining the usage frequencies corresponding to the first number of target floating windows can include: determining the usage frequencies of the first number of target floating windows in a recent period of time, for example, the usage frequencies of the first number of target floating windows in the past week can be determined; the usage frequencies of the first number of target floating windows in the past month can be determined, etc., which are not limited here.
[0059] As another practicable manner, determining the floating window to be closed from the first number of target floating windows may include: determining the target floating window that is not in the whitelist as the floating window to be closed from the first number of target floating windows. Among them, the electronic device may be pre-set and stored with a whitelist, and the whitelist may include multiple floating windows. It can be understood that the floating window in the whitelist may be the same as the floating window that represents the user's expectation not to be automatically exited from the display, or it may be used to represent the floating window that the user expects to use for a long time. In addition, the whitelist may be automatically set by the electronic device, or it may be manually personalized by the user, which is not limited here. Then, it can be understood that, among the first number of target floating windows, the target floating window in the whitelist is more likely to be expected to continue to be displayed by the user than the target floating window not in the whitelist. Therefore, the target floating window that is not in the whitelist can be determined as the floating window to be closed, while the target floating window that remains in the whitelist continues to be displayed, so as to avoid the electronic device triggering an over-high temperature shutdown while reducing the impact on the user.
[0060] Of course, in this embodiment, there may be other ways to determine the floating window to be closed from the first number of target floating windows, which will not be described in detail here.
[0061] Step S230: exit the display of the floating window to be closed, and obtain and display the second number of target floating windows.
[0062] In this embodiment, when a floating window to be closed is determined from the first number of target floating windows, the floating window to be closed can be exited from display, and the second number of target floating windows can be obtained and displayed. For example, assuming that the first number of target floating windows includes a first target floating window and a second target floating window, if the second target floating window is determined to be a floating window to be closed, the second target floating window can be exited from display, based on which, the display of the first target floating window and the second target floating window is reduced from being displayed simultaneously to only displaying the first target floating window.
[0063] In some embodiments, when it is determined that the floating window to be closed is to be directly exited from display, and the second number of target floating windows is obtained and displayed. Alternatively, when it is determined that the floating window to be closed is to be output, selection information may be output, and if confirmation information based on the selection information input is received or if information based on the selection information input is not received within the first specified time period, the floating window to be closed may be exited from display, and the second number of target floating windows is obtained and displayed; if rejection information output based on the selection information is received, the floating window to be closed may not be exited from display, and the first number of target floating windows may continue to be displayed.
[0064] In some embodiments, when a floating window to be closed is determined from the first number of target floating windows, the floating window to be closed can be removed from display, and a floating window identifier corresponding to the floating window to be closed can be displayed, wherein the floating window identifier can be used to trigger the display of the floating window to be closed. Optionally, the floating window identifier can include a floating ball, a floating icon, etc., which are not limited here.
[0065] As an implementable manner, when a floating window to be closed is determined from a first number of target floating windows, the floating window to be closed can be exited from display, a floating window identifier corresponding to the floating window to be closed is generated, and the floating window identifier corresponding to the floating window to be closed is displayed. Optionally, displaying the floating window identifier corresponding to the floating window to be closed may include: floatingly displaying the floating window identifier corresponding to the floating window to be closed at a corner or edge position of the display interface to reduce interference with user use. Optionally, displaying the floating window identifier corresponding to the floating window to be closed may include: identifying an operable control in the display interface of the electronic device, determining a display position of the operable control in the display interface, and floatingly displaying the floating window identifier corresponding to the floating window to be closed at a position in the display interface that does not overlap with the display position.
[0066] See also Figure 5 , Figure 5 FIG. 2 shows a third interface schematic diagram of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device may display a first target floating window and a floating window identifier A corresponding to the floating window to be closed (second target floating window).
[0067] In some embodiments, in the process of displaying a floating window identifier corresponding to a floating window to be closed, a touch operation acting on the floating window identifier can be detected. Among them, if a first touch operation acting on the floating window identifier is detected, the floating window to be closed can be directly displayed again, or, if a first touch operation acting on the floating window identifier is detected, it can be determined whether the temperature of the electronic device drops below a temperature threshold, and if it is determined that the temperature of the electronic device drops below the temperature threshold, the floating window to be closed can be displayed again. Optionally, when displaying the floating window to be closed again, the display content of the floating window to be closed when it was last exited can be located and displayed. Optionally, the first touch operation can include a first press operation, a first click operation, a first slide operation, etc., which are not limited here.
[0068] In some embodiments, during the process of displaying the floating window identifier corresponding to the floating window to be closed, it can be determined whether the temperature of the electronic device has dropped below a temperature threshold. If it is determined that the temperature of the electronic device has dropped below the temperature threshold, the floating window identifier can be highlighted; or, if it is determined that the temperature of the electronic device has not dropped below the temperature threshold, the floating window identifier can be displayed normally. It can be understood that highlighting the floating window identifier can more effectively prompt the user to trigger the redisplay of the floating window to be closed through the floating window identifier.
[0069] Optionally, highlighting the floating window logo may include: enlarging and displaying the floating window logo, flashing and displaying the floating window logo, moving and displaying the floating window logo, coloring and displaying the floating window logo, etc., which is not limited here.
[0070] In some embodiments, in the process of highlighting the floating window logo, the touch operation acting on the highlighted floating window logo can be detected. Among them, if a second touch operation acting on the highlighted floating window logo is detected, the floating window to be closed can be displayed again; if a third touch operation acting on the highlighted floating window logo is detected or the touch operation acting on the highlighted floating window logo is not detected within the second specified time period, the highlighted floating window logo can be exited from display, that is, the floating window logo will no longer continue to be displayed. Optionally, when the floating window to be closed is displayed again, the display content of the floating window to be closed when it was most recently exited from display can be located and displayed. Optionally, the second touch operation may include a second press operation, a second click operation, a second slide operation, etc., and the third touch operation may include a third press operation, a third click operation, a third slide operation, etc., which are not limited here.
[0071] See also Figure 6 , Figure 6 This application shows Figure 4 The flowchart of step S230 of the method for displaying a floating window is shown in FIG. Figure 6The process shown is described in detail, and the method may specifically include the following steps:
[0072] Step S231: reducing the display size of the floating window to be closed.
[0073] In some embodiments, when a floating window to be closed is determined from the first number of target floating windows, the display size of the floating window to be closed can be reduced to reduce the display power consumption caused by the floating window to be closed and reduce the temperature of the electronic device.
[0074] As an implementable manner, the electronic device may pre-set and store a target size, and when a floating window to be closed is determined from a first number of target floating windows, the display size of the floating window to be closed may be reduced to the target size.
[0075] As another feasible method, when a floating window to be closed is determined from a first number of target floating windows, the current temperature of the electronic device can be determined, and the display size of the floating window to be closed can be reduced based on the current temperature, wherein the current temperature is positively correlated with the reduced display size of the floating window to be closed, that is, the higher the current temperature, the larger the display size of the floating window to be closed is reduced, and the smaller the display size of the floating window to be closed after being reduced; the lower the current temperature, the smaller the display size of the floating window to be closed is reduced, and the larger the display size of the floating window to be closed is reduced.
[0076] See also Figure 7 , Figure 7 FIG. 4 shows a fourth interface schematic diagram of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device may display a first target floating window and a floating window to be closed after reducing the display size (second target floating window).
[0077] Step S232: If the temperature of the electronic device does not drop below the temperature threshold within the preset time period, the to-be-closed floating window with a reduced display size will be exited from display, and the second number of target floating windows will be obtained and displayed.
[0078] In some implementations, during the process of reducing the display size of the floating window to be closed and displaying the floating window to be closed with the reduced display size, the temperature change of the electronic device can continue to be monitored and the temperature change result can be obtained.
[0079] Among them, if it is determined based on the temperature change results that the temperature of the electronic device has not dropped below the temperature threshold within the preset time period, it can be considered that the temperature rise problem of the electronic device cannot be solved by only reducing the display size of the floating window to be closed. Therefore, the floating window to be closed after the display size is reduced can be exited from display to obtain and display a second number of target floating windows.
[0080] Among them, if it is determined based on the temperature change results that the temperature of the electronic device drops to less than the temperature threshold within a preset time period, it can be considered that the temperature rise problem of the electronic device can be solved only by reducing the display size of the floating window to be closed. Therefore, the floating window to be closed can be kept displayed in the reduced display size.
[0081] A method for displaying a floating window provided by an embodiment of the present application displays a first number of target floating windows, wherein the first number is at least two, and if the temperature of the electronic device is greater than or equal to a temperature threshold, determines a floating window to be closed from the first number of target floating windows, exits the display of the floating window to be closed, obtains and displays a second number of target floating windows, and compares Figure 1 The method for displaying the floating window shown in the figure, this embodiment also determines to exit the display of the floating window to be closed from the first number of target floating windows, so as to avoid the electronic device triggering shutdown due to excessive temperature, thereby improving the user experience.
[0082] See also Figure 8 , Figure 8 A schematic diagram of a method for displaying a floating window provided by an embodiment of the present application is shown. The method is applied to the above electronic device. Figure 8 The process shown is described in detail, and the method for displaying the floating window may specifically include the following steps:
[0083] Step S310: Display a first number of target pop-up windows, where the first number is at least two.
[0084] Step S320: If the temperature of the electronic device is greater than or equal to the temperature threshold, the display of the first number of target floating windows is reduced to a second number of target floating windows.
[0085] For the detailed description of step S310 to step S320, please refer to step S110 to step S120, which will not be repeated here.
[0086] Step S330: receiving a floating window display operation, wherein the floating window display operation is used to instruct display of a floating window to be displayed.
[0087] In this embodiment, when the electronic device is reducing the number of target floating windows to display the second number, the user may need to open other floating windows (floating windows to be displayed), and the user may input a floating window display operation for indicating the display of the floating windows to be displayed through the electronic device, and accordingly, the electronic device may receive the floating window display operation. Optionally, the number of the floating windows to be displayed may be one or more.
[0088] In some embodiments, the user may input a floating window display operation for indicating display of a floating window to be displayed by touch operation, may input a floating window display operation for indicating display of a floating window to be displayed by voice, etc., which is not limited here.
[0089] Step S340: Some or all of the second number of target floating windows are removed from display, and the floating windows to be displayed are displayed.
[0090] In this embodiment, in response to the floating window display operation, the electronic device may exit display of all or part of the second number of target floating windows and display the floating windows to be displayed.
[0091] See also Fig. 9 , Fig. 9 FIG. 5 shows a fifth interface schematic diagram of an electronic device provided in an embodiment of the present application. Fig. 9 As shown, the electronic device exits the display as shown Figure 3 The first target floating window is shown, and other floating windows (floating windows to be displayed) are displayed.
[0092] Optionally, the number of floating windows to be displayed may be one or more. When the number of floating windows to be displayed is one, then, when all or part of the second number of target floating windows are exited from display, the one floating window to be displayed may be displayed; when the number of floating windows to be displayed is multiple, then, when all or part of the second number of target floating windows are exited from display, the multiple floating windows to be displayed may all be displayed, or one of the multiple floating windows to be displayed may be displayed.
[0093] As an implementable method, multiple floating windows to be displayed can be displayed, or displaying one of the multiple floating windows to be displayed can include: determining the current temperature of the electronic device, if the temperature of the electronic device is low based on the current temperature (such as the current temperature is less than a temperature threshold), then multiple floating windows to be displayed can be displayed; if the temperature of the electronic device is high based on the current temperature (such as the current temperature is higher than the temperature threshold), then one of the multiple floating windows to be displayed can be displayed.
[0094] In some embodiments, the electronic device can directly exit the display of all the second number of target floating windows in response to the floating window display operation, and display the floating window to be displayed. As an example, if the second number is two, then both target floating windows can be exited from display and the floating window to be displayed can be displayed; if the second number is one, then one target floating window can be exited from display and the floating window to be displayed can be displayed, etc., which will not be repeated here.
[0095] In some embodiments, the electronic device may determine the current temperature of the electronic device in response to the floating window display operation. If the temperature of the electronic device is determined to be low based on the current temperature (such as the current temperature is less than the temperature threshold), part of the second number of target floating windows may be exited from display and the floating window to be displayed may be displayed. If the temperature of the electronic device is determined to be high based on the current temperature (such as the current temperature is higher than the temperature threshold), all of the second number of target floating windows may be exited from display and the floating window to be displayed may be displayed. As an example, if the second number is two and the temperature of the electronic device is low, one of the two target floating windows may be exited from display, at which point the other target floating window of the two target floating windows and the floating window to be displayed may be displayed simultaneously; if the second number is two and the temperature of the electronic device is high, both target floating windows may be exited from display, at which point the floating window to be displayed is displayed.
[0096] In some embodiments, the electronic device can determine the target load corresponding to the floating window to be displayed in response to the floating window display operation. If the target load is higher than the load threshold, part or all of the second target floating window can be exited from display and the floating window to be displayed can be displayed; if the target load is less than or equal to the load threshold, a second number of target floating windows and the floating window to be displayed are displayed.
[0097] Among them, determining the target load corresponding to the floating window to be displayed may include: determining the application corresponding to the floating window to be displayed, and determining the target load corresponding to the floating window to be displayed based on the application corresponding to the floating window to be displayed.
[0098] Among them, the electronic device may pre-set and store a load threshold, wherein the load threshold is used as a basis for judging the load corresponding to the floating window. Therefore, in this embodiment, when determining the target load corresponding to the floating window to be displayed, the target load may be compared with the load threshold to determine whether the target load is higher than the load threshold. Among them, if it is determined that the target load is higher than the load threshold, it can be considered that the load of the floating window to be displayed is high. If the floating window to be displayed is directly added for display, there is a high probability of triggering the electronic device to shut down due to excessive temperature. Therefore, in order to avoid the electronic device triggering the shutdown due to excessive temperature, part or all of the second target floating window can be exited from display, and the floating window to be displayed can be displayed. If it is determined that the target load is less than or equal to the load threshold, it can be considered that the load of the floating window to be displayed is low. Even if the floating window to be displayed is directly added for display, there is only a low probability of triggering the electronic device to shut down due to excessive temperature. Therefore, the second number of target floating windows and floating windows to be displayed can be displayed.
[0099] In some embodiments, the electronic device may monitor the temperature change of the electronic device and obtain the temperature change result in response to the floating window display operation. If it is determined based on the temperature change result that the temperature of the electronic device has not dropped below the temperature threshold, the application running in the background of the electronic device may be closed, so as to reduce the power consumption of the electronic device by closing the application running in the background of the electronic device, thereby reducing the temperature of the electronic device; if it is determined based on the temperature change that the temperature of the electronic device drops below the temperature threshold, the application running in the background of the electronic device may be kept running.
[0100] As an implementable manner, closing applications running in the background of the electronic device may include: closing some or all applications running in the background of the electronic device. Optionally, if some applications running in the background of the electronic device are closed, some applications with higher loads may be selected from all applications running in the background of the electronic device to be closed, some applications that have been running in the background for an earlier time may be selected to be closed, some applications with lower usage rates may be selected to be closed, etc., which are not limited here.
[0101] An embodiment of the present application provides a method for displaying a floating window, which displays a first number of target floating windows, wherein the first number is at least two, and if the temperature of the electronic device is greater than or equal to a temperature threshold, the display of the first number of target floating windows is reduced to a second number of target floating windows, and a floating window display operation is received, wherein the floating window display operation is used to indicate the display of the floating window to be displayed, and some or all of the second number of target floating windows are removed from display, and the floating window to be displayed is displayed. Compared to Figure 1 The method for displaying the floating window shown in the figure, when there is a need to display a new floating window, the previously displayed floating window is closed and the new floating window is displayed, ensuring that the electronic device only displays a small number of floating windows to avoid the electronic device triggering an over-temperature shutdown, thereby improving the user experience.
[0102] See also Fig.10 , Fig.10 The module block diagram of the floating window display device provided by an embodiment of the present application is shown. The floating window display device 200 is applied to the above electronic device. Fig.10 As shown in the block diagram, the floating window display device 200 includes: a target floating window display module 210 and a target floating window reduction module 220, wherein:
[0103] The target floating window display module 210 is used to display a first number of target floating windows, where the first number is at least two.
[0104] The target floating window reducing module 220 is configured to reduce the number of target floating windows displayed from the first number to the second number if the temperature of the electronic device is greater than or equal to a temperature threshold.
[0105] Furthermore, the target floating window reduction module 220 includes: a floating window to be closed determination submodule and a target floating window display submodule, wherein:
[0106] The to-be-closed floating window determination submodule is configured to determine a to-be-closed floating window from the first number of target floating windows.
[0107] Furthermore, the floating window to be closed determining submodule includes: a first floating window to be closed determining unit, a second floating window to be closed determining unit, a third floating window to be closed determining unit, and a fourth floating window to be closed determining unit, wherein:
[0108] The first to-be-closed floating window determining unit is configured to determine a first activated target floating window from among the first number of target floating windows as the to-be-closed floating window.
[0109] The second floating window to be closed determining unit is configured to determine a target floating window with the highest load from among the first number of target floating windows as the floating window to be closed.
[0110] The third floating window to be closed determining unit is configured to determine the target floating window with the lowest usage frequency from among the first number of target floating windows as the floating window to be closed.
[0111] The fourth to-be-closed floating window determining unit is configured to determine, from among the first number of target floating windows, a target floating window that is not in the whitelist as the to-be-closed floating window.
[0112] The target floating window display submodule is used to exit the display of the floating window to be closed, and obtain and display the second number of target floating windows.
[0113] Furthermore, the target floating window display submodule includes: a display size reduction unit and a target floating window display unit, wherein:
[0114] The display size reducing unit is used to reduce the display size of the floating window to be closed.
[0115] The target floating window display unit is used to exit the display of the to-be-closed floating window with a reduced display size if the temperature of the electronic device does not drop below the temperature threshold within a preset time period, and obtain and display the second number of target floating windows.
[0116] Furthermore, the target floating window reduction module 220 further includes: a floating window identification display submodule, wherein:
[0117] The floating window identification display submodule is used to exit the display of the floating window to be closed and display the floating window identification corresponding to the floating window to be closed, wherein the floating window identification is used to trigger the display of the floating window to be closed.
[0118] Furthermore, the target floating window reduction module 220 further includes: a floating window identification highlighting unit, wherein:
[0119] The floating window logo highlighting unit is used to highlight the floating window logo if it is determined that the temperature of the electronic device drops below the temperature threshold.
[0120] Furthermore, the floating window display device 200 further includes: a floating window display operation receiving module and a floating window display module to be displayed, wherein:
[0121] The floating window display operation receiving module is used to receive a floating window display operation, wherein the floating window display operation is used to instruct the display of a floating window to be displayed.
[0122] The to-be-displayed floating window display module is used to stop displaying part or all of the second number of target floating windows and display the to-be-displayed floating windows.
[0123] Furthermore, the to-be-displayed floating window display module includes: a target load determination submodule, a first to-be-displayed floating window display submodule, and a second to-be-displayed floating window display submodule, wherein:
[0124] The target load determination submodule is used to determine the target load corresponding to the floating window to be displayed.
[0125] The first to-be-displayed floating window display submodule is used to, if the target load is higher than a load threshold, stop displaying part or all of the second number of target floating windows and display the to-be-displayed floating windows.
[0126] The second to-be-displayed floating window display submodule is configured to display the second number of target floating windows and the to-be-displayed floating windows if the target load is less than or equal to a load threshold.
[0127] Furthermore, the floating window display device 200 further includes: a background application closing module, wherein:
[0128] The background application closing module is used to close the application program running in the background of the electronic device if it is determined that the temperature of the electronic device has not dropped below the temperature threshold.
[0129] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0130] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0131] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0132] See also Fig.11 , which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.
[0133] Among them, the processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 110 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0134] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing functions (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.
[0135] In some embodiments, the electronic device 100 may further include a touch screen, wherein the touch screen is used to display information input by a user, information provided to a user, and various graphical user interfaces of the electronic device 100, and these graphical user interfaces may be composed of graphics, text, icons, numbers, videos, and any combination thereof. In one example, the touch screen may be a liquid crystal display (LCD) or an organic light-emitting diode (OLED), which is not limited here.
[0136] In some embodiments, the electronic device 100 may further include a sensor, wherein the sensor may include a temperature sensor for detecting the temperature of the electronic device, such as for detecting the shell temperature of the electronic device, and the sensor may include a light sensor, which may be used to turn off the display of the touch screen when an object approaches the touch screen, such as when the main body of the electronic device moves to the ear. The sensor may include a pressure sensor, which may be used to detect the pressure generated by pressing on the electronic device, that is, the pressure sensor may detect the pressure generated by the contact or pressing between the user and the electronic device, such as the pressure generated by the contact or pressing between the user's ear or finger and the electronic device. The sensor may include a gravity sensor for detecting the magnitude of acceleration in each direction (generally three axes), and the magnitude and direction of gravity may be detected when stationary, which may be used for applications that recognize the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. In addition, the electronic device may also be equipped with other sensors such as gyroscopes, barometers, and hygrometers, which are not limited here.
[0137] Of course, the electronic device may also include many other components, which will not be described in detail here.
[0138] See also Fig.12, which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 300 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0139] The computer readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer readable storage medium 300 has storage space for program code 310 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 310 can be compressed, for example, in an appropriate form.
[0140] In some implementations, the embodiments of the present application further provide a computer program product, which includes a computer program, and the computer program implements the above method when executed by a processor.
[0141] To summarize, the floating window display method, device, electronic device, storage medium and program product provided in the embodiments of the present application display a first number of target floating windows, wherein the first number is at least two. If the temperature of the electronic device is greater than or equal to the temperature threshold, the display of the first number of target floating windows is reduced to the display of the second number of target floating windows. In this way, in a scenario where the electronic device displays at least two target floating windows, if the temperature is too high, then by reducing the number of displayed target floating windows, the electronic device can be prevented from triggering shutdown when the temperature is too high, thereby improving the user experience.
[0142] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for displaying a floating window, It is characterized in that Applied to electronic equipment, the method comprises: Displaying a first number of target pop-up windows, wherein the first number is at least two; If the temperature of the electronic device is greater than or equal to the temperature threshold, the display of the first number of target floating windows is reduced to a second number of target floating windows.
2. The method according to claim 1, It is characterized in that The second number is one.
3. The method according to claim 1, It is characterized in that The reducing the display of the first number of target floating windows to the display of the second number of target floating windows includes: Determining a floating window to be closed from the first number of target floating windows; The to-be-closed floating window is exited from display, and the second number of target floating windows is obtained and displayed.
4. The method according to claim 3, It is characterized in that The determining the floating windows to be closed from the first number of target floating windows includes: Determine the first activated target floating window from the first number of target floating windows as the floating window to be closed; or Determine the target floating window with the highest load from the first number of target floating windows as the floating window to be closed; or Determine the target floating window with the lowest usage frequency from the first number of target floating windows as the floating window to be closed; or A target floating window that is not in a whitelist is determined from the first number of target floating windows as the floating window to be closed.
5. The method according to claim 3, It is characterized in that The method further comprises: The floating window to be closed is exited from display, and a floating window identifier corresponding to the floating window to be closed is displayed, wherein the floating window identifier is used to trigger the display of the floating window to be closed.
6. The method according to claim 5, It is characterized in that After the floating window to be closed is exited from display and a floating window identifier corresponding to the floating window to be closed is displayed, the method further includes: If it is determined that the temperature of the electronic device drops below the temperature threshold, the floating window logo is highlighted.
7. The method according to claim 3, It is characterized in that The step of exiting the display of the to-be-closed floating window and obtaining and displaying the second number of target floating windows includes: Reducing the display size of the floating window to be closed; If the temperature of the electronic device does not drop below the temperature threshold within the preset time period, the to-be-closed floating window with a reduced display size will be exited from display, and the second number of target floating windows will be obtained and displayed.
8. The method according to any one of claims 1 to 7, It is characterized in that After reducing the display of the first number of target floating windows to display of the second number of target floating windows, the method further includes: Receiving a floating window display operation, wherein the floating window display operation is used to instruct displaying a floating window to be displayed; Some or all of the second number of target floating windows are exited from display, and the floating windows to be displayed are displayed.
9. The method according to claim 8, It is characterized in that The step of withdrawing some or all of the second number of target floating windows from display and displaying the to-be-displayed floating windows includes: Determining a target load corresponding to the floating window to be displayed; If the target load is higher than the load threshold, some or all of the second number of target floating windows are removed from display, and the floating windows to be displayed are displayed.
10. The method according to claim 8, It is characterized in that After the receiving floating window display operation, the method further includes: If it is determined that the temperature of the electronic device has not dropped below the temperature threshold, the application running in the background of the electronic device is closed.
11. A floating window display device, It is characterized in that Applied to electronic equipment, the device comprises: a target floating window display module, configured to display a first number of target floating windows, wherein the first number is at least two; The target floating window reduction module is used to reduce the display of the first number of target floating windows to the second number of target floating windows if the temperature of the electronic device is greater than or equal to a temperature threshold.
12. An electronic device, It is characterized in that The method comprises a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 10.
14. A computer program product, It is characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
