草庐IT

most_recent_conversations

全部标签

Android10.0 最近任务Recents功能分析

在Android10.0上,Recents功能分布在SystemUI和Launcher3里面集成.一.初始化跟Android8.1类似,先看初始化入口:1.Recents.javaRecents继承SystemUI,进程启动后会在Dependency里面通过@Inject进行初始化,然后在SystemUIService里面调用SystemUIApplication的startServicesIfNeeded()里面进行启动:privatefinalRecentsImplementationmImpl@Overridepublicvoidstart(){//加入callbackmCommandQ