update:2020.09.22
fix:空值报错修复 add:
This commit is contained in:
28
app/app.iml
28
app/app.iml
File diff suppressed because one or more lines are too long
@@ -70,7 +70,7 @@ public class FeaturedFragment extends LazyLoadFragment implements RefreshManager
|
|||||||
super.onStop();
|
super.onStop();
|
||||||
if (myReceiver != null) {
|
if (myReceiver != null) {
|
||||||
try {
|
try {
|
||||||
getActivity().getApplication().unregisterReceiver(myReceiver);
|
mContext.unregisterReceiver(myReceiver);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LogUtils.e("onStop", e.getMessage());
|
LogUtils.e("onStop", e.getMessage());
|
||||||
}
|
}
|
||||||
@@ -204,8 +204,8 @@ public class FeaturedFragment extends LazyLoadFragment implements RefreshManager
|
|||||||
|
|
||||||
public List<AppInfo> checkUpdateOrInstalled(List<AppInfo> list) {
|
public List<AppInfo> checkUpdateOrInstalled(List<AppInfo> list) {
|
||||||
for (AppInfo appInfo : list) {
|
for (AppInfo appInfo : list) {
|
||||||
appInfo.setInstall(ApkUtils.isAvailable(getContext(), appInfo.getApp_package()));
|
appInfo.setInstall(ApkUtils.isAvailable(mContext, appInfo.getApp_package()));
|
||||||
appInfo.setUpdate(ApkUtils.checkIsUpdate(getContext(), appInfo.getApp_package(), Integer.parseInt(appInfo.getApp_version_code())));
|
appInfo.setUpdate(ApkUtils.checkIsUpdate(mContext, appInfo.getApp_package(), Integer.parseInt(appInfo.getApp_version_code())));
|
||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user