com.android.launcher3.taskbar.TaskbarModelCallbacks.commitItemsToUI
// 更新任务栏UI
private void commitItemsToUI() {
//加上你的逻辑判断,返回不执行
if(/*例如*/mContainer.isLayoutSuppressed()){
return;
}
if (mContext.isBindingItems()) {
return;
}
ItemInfo[] hotseatItemInfos =
new ItemInfo[mContext.getDeviceProfile().numShownHotseatIcons];
int predictionSize = mPredictedItems.size();
int predictionNextIndex = 0;
boolean isHotseatEmpty = true;
for (int i = 0; i < hotseatItemInfos.length; i++) {
hotseatItemInfos[i] = mHotseatItems.get(i);
if (hotseatItemInfos[i] == null && pred
标签:ItemInfo,13,桌面图标,int,hotseatItemInfos,mContext,commitItemsToUI,Launcher3,任务栏
From: https://blog.csdn.net/Sqq_yj/article/details/144927911