|
@@ -206,14 +206,14 @@ private RequestManager mRequestManager;
|
206
|
206
|
@Override
|
207
|
207
|
public void onDownloadStart(String s, String s1, String s2, String s3, long l) {
|
208
|
208
|
// Log.e("onDownloadStart",s+":"+s1+":"+s2+":"+s3);
|
209
|
|
- DownLoadManager.downLoadForNoMsg(MoneyTaskFragmentActivity.this, s);
|
210
|
|
-// try {
|
211
|
|
-// Uri uri = Uri.parse(s);
|
212
|
|
-// Intent intent = new Intent(Intent.ACTION_VIEW,uri);
|
213
|
|
-// startActivity(intent);
|
214
|
|
-// }catch (Exception e){
|
215
|
|
-//
|
216
|
|
-// }
|
|
209
|
+// DownLoadManager.downLoadForNoMsg(MoneyTaskFragmentActivity.this, s);
|
|
210
|
+ try {
|
|
211
|
+ Uri uri = Uri.parse(s);
|
|
212
|
+ Intent intent = new Intent(Intent.ACTION_VIEW,uri);
|
|
213
|
+ startActivity(intent);
|
|
214
|
+ }catch (Exception e){
|
|
215
|
+
|
|
216
|
+ }
|
217
|
217
|
// String path = Environment.getExternalStorageDirectory().getAbsolutePath() + "/test.apk";
|
218
|
218
|
// Log.e("path", path);
|
219
|
219
|
// downLoad(s, path);
|
|
@@ -357,14 +357,14 @@ private RequestManager mRequestManager;
|
357
|
357
|
@Override
|
358
|
358
|
public void onDownloadStart(String s, String s1, String s2, String s3, long l) {
|
359
|
359
|
// Log.e("onDownloadStart",s+":"+s1+":"+s2+":"+s3);
|
360
|
|
- DownLoadManager.downLoadForNoMsg(MoneyTaskFragmentActivity.this, s);
|
361
|
|
-// try {
|
362
|
|
-// Uri uri = Uri.parse(s);
|
363
|
|
-// Intent intent = new Intent(Intent.ACTION_VIEW,uri);
|
364
|
|
-// startActivity(intent);
|
365
|
|
-// }catch (Exception e){
|
366
|
|
-//
|
367
|
|
-// }
|
|
360
|
+// DownLoadManager.downLoadForNoMsg(MoneyTaskFragmentActivity.this, s);
|
|
361
|
+ try {
|
|
362
|
+ Uri uri = Uri.parse(s);
|
|
363
|
+ Intent intent = new Intent(Intent.ACTION_VIEW,uri);
|
|
364
|
+ startActivity(intent);
|
|
365
|
+ }catch (Exception e){
|
|
366
|
+
|
|
367
|
+ }
|
368
|
368
|
// String path = Environment.getExternalStorageDirectory().getAbsolutePath() + "/test.apk";
|
369
|
369
|
// Log.e("path", path);
|
370
|
370
|
// downLoad(s, path);
|
|
@@ -1244,7 +1244,9 @@ private RequestManager mRequestManager;
|
1244
|
1244
|
* 加载限时领取弹窗
|
1245
|
1245
|
*/
|
1246
|
1246
|
private void showLimitDialog() {
|
1247
|
|
-
|
|
1247
|
+ if(isFinishing()){
|
|
1248
|
+ return;
|
|
1249
|
+ }
|
1248
|
1250
|
final AdDialog adDialog = new AdDialog(this).builder().prepareToShowLimitDialog(ADConstants.AD_OPEN_APP_TIMER).setOnGoldGetListener(new AdDialog.OnGoldGetListener() {
|
1249
|
1251
|
@Override
|
1250
|
1252
|
public void getGoldDouble(int task_type, String pk) {
|