删除部分无用代码 完成部分todo
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user