V3.0.1优化完成 补丁安装完成要出现弹窗提示->还没测试
This commit is contained in:
@ -91,17 +91,14 @@ public class DownloadDialog implements OnCollectionCallBackListener {
|
||||
private boolean isLoadPlatform;
|
||||
|
||||
private DownloadDialog() {
|
||||
}
|
||||
|
||||
private DownloadDialog(Context context) {
|
||||
mContext = context;
|
||||
isShow = false;
|
||||
}
|
||||
|
||||
public static DownloadDialog getInstance(Context context) {
|
||||
if (instance == null) {
|
||||
instance = new DownloadDialog(context);
|
||||
instance = new DownloadDialog();
|
||||
}
|
||||
instance.mContext = context; // 每次创建context重新赋值, Dialog持有context问题
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user