版本升为3.6.2
This commit is contained in:
@ -105,10 +105,11 @@ public class DownloadDialog implements OnCollectionCallBackListener {
|
||||
isShow = false;
|
||||
}
|
||||
|
||||
// todo 不能设置未单例
|
||||
public static DownloadDialog getInstance(Context context) {
|
||||
if (instance == null) {
|
||||
instance = new DownloadDialog();
|
||||
}
|
||||
// if (instance == null) {
|
||||
instance = new DownloadDialog();
|
||||
// }
|
||||
instance.mContext = context; // 每次创建context重新赋值, Dialog持有context问题
|
||||
return instance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user