第一步:
1、找到Launcher3/src/com/android/launcher3/model/LoaderTask.java
第二步:
1、找到loadAllApps()函数,在里面添加相关代码
for (int i = 0; i < apps.size(); i++) {
LauncherActivityInfo app = apps.get(i);
boolean filterOtaAppIcon = mApp.getContext().getResources().getBoolean(R.bool.filter_ota_app_icon);
if("com.sohu.inputmethod.sogou".equals(app.getApplicationInfo().packageName)) {
continue;
}
try {
if(isAvailable() == true){
Log.d(TAG,"===isAvailable2==="+isAvailable());
}else{
Thread.currentThread().sleep(5*1000);
}
isAvailable();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}