US 12,333,120 B2
Method for controlling display in floating window, electronic device, and storage medium
Cong Peng, Beijing (CN)
Assigned to BEIJING XIAOMI MOBILE SOFTWARE CO., LTD., Beijing (CN)
Filed by Beijing Xiaomi Mobile Software Co., Ltd., Beijing (CN)
Filed on May 30, 2023, as Appl. No. 18/325,737.
Claims priority of application No. 202211713199.3 (CN), filed on Dec. 29, 2022.
Prior Publication US 2024/0220064 A1, Jul. 4, 2024
Int. Cl. G06F 3/048 (2013.01); G06F 3/0481 (2022.01); G06F 9/451 (2018.01)
CPC G06F 3/0481 (2013.01) [G06F 9/452 (2018.02)] 13 Claims
OG exemplary drawing
 
1. A method for controlling display in a floating window, performed by an electronic device and comprising:
under a condition that the floating window is enabled, monitoring an information update event of each of a plurality of monitored applications in real time, wherein the monitored applications are applications in a running state and are different from a main application that a user is using in the foreground;
determining a target monitored application to be displayed this time according to a monitoring result within latest preset time; and
displaying latest update information of the target monitored application by displaying an information display page of the target monitored application by means of the floating window on a running interface of the main application;
wherein displaying the information display page of the target monitored application by means of the floating window comprises:
in response to determining that a plurality of target monitored applications are to be displayed this time and a current window size of the floating window is a default window size, expanding a window size of the floating window, and simultaneously displaying respective information display pages of the plurality of target monitored applications to be displayed this time in the expanded floating window, wherein the default window size is a size suitable for one application;
wherein determining the target monitored application to be displayed this time according to the monitoring result within latest preset time comprises:
determining an information activity level of each monitored application according to the monitoring result, wherein the information activity level is configured to represent an information update rate of the monitored application; and
determining the target monitored application to be displayed this time according to the information activity level;
wherein determining the target monitored application to be displayed this time according to the information activity level comprises:
under a condition that a plurality of monitored applications are currently displayed in the floating window, in response to determining that the information activity level of each monitored application currently displayed in the floating window is smaller than a preset information activity level threshold and monitored applications not currently displayed in the floating window are present, determining the target monitored application to be displayed this time from the monitored applications not currently displayed in the floating window;
wherein determining the target monitored application to be displayed this time from the monitored applications not currently displayed in the floating window comprises:
determining a monitored application having a maximum information activity level in the monitored applications not currently displayed in the floating window as the target monitored application to be displayed this time, and alternatively,
determining, in a preset display order, a monitored application ranking first in display order in the monitored applications not currently displayed in the floating window as the target monitored application to be displayed this time.