Commit 999a7639 by sikang

update applist

parent 105fd0eb
......@@ -168,11 +168,18 @@ public class DeviceUtils {
}
private List<AppInfoBean> appList;
/**
* 已安装应用列表
*/
public List<AppInfoBean> getAppList(Context context) {
List<AppInfoBean> appList = new ArrayList<>();
if (appList == null) {
appList = new ArrayList<>();
} else {
return appList;
}
try {
PackageManager manager = context.getPackageManager();
List<PackageInfo> packages = manager.getInstalledPackages(0);
......@@ -311,9 +318,9 @@ public class DeviceUtils {
}
DisplayBean displayBean = PreferencesManager.get().getCustomerInfo();
if((displayBean != null && displayBean.isFakeProductFlag())){
if ((displayBean != null && displayBean.isFakeProductFlag())) {
return "display";
}else{
} else {
return "";
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment