删除部分无用代码 完成部分todo

This commit is contained in:
kehaoyuan
2018-11-30 18:16:18 +08:00
parent df8753e1c4
commit 4d87edb1fd
32 changed files with 42 additions and 377 deletions

View File

@ -39,4 +39,15 @@ public class DownloadManagerActivity extends NormalActivity {
bundle.putInt(BaseFragment_TabLayout.PAGE_INDEX, position);
return getTargetIntent(context, DownloadManagerActivity.class, DownloadFragment.class, bundle);
}
/**
* 根据packageName检查是否可以更新/插件化 如果可以则自动下载
*/
public static Intent getDownloadMangerIntent(Context context, String packageName, int position, String entrance) {
Bundle bundle = new Bundle();
bundle.putString(EntranceUtils.KEY_ENTRANCE, entrance);
bundle.putInt(BaseFragment_TabLayout.PAGE_INDEX, position);
bundle.putString(EntranceUtils.KEY_PACKAGENAME, packageName);
return getTargetIntent(context, DownloadManagerActivity.class, DownloadFragment.class, bundle);
}
}