|
9 | 9 | import android.content.Context; |
10 | 10 | import android.content.DialogInterface; |
11 | 11 | import android.content.Intent; |
12 | | -import android.content.SharedPreferences; |
13 | 12 | import android.net.Uri; |
14 | 13 | import android.os.Build; |
15 | 14 | import android.os.Bundle; |
|
58 | 57 | import org.json.JSONObject; |
59 | 58 |
|
60 | 59 | import java.io.File; |
61 | | -import java.io.IOException; |
62 | 60 | import java.io.InputStream; |
63 | 61 | import java.text.SimpleDateFormat; |
64 | 62 | import java.util.ArrayList; |
|
76 | 74 | import cn.darkal.networkdiagnosis.Fragment.BackHandledInterface; |
77 | 75 | import cn.darkal.networkdiagnosis.Fragment.NetworkFragment; |
78 | 76 | import cn.darkal.networkdiagnosis.Fragment.PreviewFragment; |
79 | | -import cn.darkal.networkdiagnosis.Fragment.PreviewFragment_ViewBinder; |
80 | 77 | import cn.darkal.networkdiagnosis.Fragment.WebViewFragment; |
81 | 78 | import cn.darkal.networkdiagnosis.R; |
82 | 79 | import cn.darkal.networkdiagnosis.SysApplication; |
@@ -548,10 +545,14 @@ public void onGlobalLayout() { |
548 | 545 | @Override |
549 | 546 | protected void onNewIntent(Intent intent) { |
550 | 547 | super.onNewIntent(intent); |
551 | | - setIntent(intent); |
552 | | - handleUriStartupParams(); |
553 | | - if (intent.getAction().equals("android.intent.action.SEARCH")) { |
554 | | - switchContent(PreviewFragment.getInstance()); |
| 548 | + try { |
| 549 | + setIntent(intent); |
| 550 | + handleUriStartupParams(); |
| 551 | + if (intent.getAction().equals("android.intent.action.SEARCH")) { |
| 552 | + switchContent(PreviewFragment.getInstance()); |
| 553 | + } |
| 554 | + }catch (Exception e){ |
| 555 | + e.printStackTrace(); |
555 | 556 | } |
556 | 557 | } |
557 | 558 |
|
|
0 commit comments