前言
Android12对最近应用列表做了调整,将早期同版本中原本处于SystemUI模块的最近应用列表转移到了Launcher3QuickStep应用中。
本篇文章我们会结合源码一起来梳理一下最近应用列表的显示流程,以便更好的明白SystemUI模块是如何给Launcher3模块发送消息的。
一、SystemUI模块显示最近应用列表的相关代码
1、在SystemUI模块调用CommandQueue的showRecentApps方法可以实现最近应用列表的显示。
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
public class CommandQueue extends IStatusBar.Stub implements
CallbackController<Callbacks