File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
app/src/main/java/cn/darkal/networkdiagnosis/Activity Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -460,7 +460,7 @@ public void setSelectedFragment(BaseFragment selectedFragment) {
460460
461461 public void installCert () {
462462 final String CERTIFICATE_RESOURCE = Environment .getExternalStorageDirectory () + "/har/littleproxy-mitm.pem" ;
463- Boolean isInstallCert = SharedPreferenceUtils .getBoolean (this , "isInstallCert " , false );
463+ Boolean isInstallCert = SharedPreferenceUtils .getBoolean (this , "isInstallNewCert " , false );
464464
465465 if (!isInstallCert ) {
466466 Toast .makeText (this , "必须安装证书才可实现HTTPS抓包" , Toast .LENGTH_LONG ).show ();
@@ -490,7 +490,7 @@ public void installCert() {
490490 public void onActivityResult (int requestCode , int resultCode , Intent data ) {
491491 if (requestCode == 3 ) {
492492 if (resultCode == Activity .RESULT_OK ) {
493- SharedPreferenceUtils .putBoolean (this ,"isInstallCert " , true );
493+ SharedPreferenceUtils .putBoolean (this ,"isInstallNewCert " , true );
494494 Toast .makeText (this , "安装成功" , Toast .LENGTH_LONG ).show ();
495495
496496 } else {
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ public void run() {
228228 public void onActivityResult (int requestCode , int resultCode , Intent data ) {
229229 if (requestCode == 3 ) {
230230 if (resultCode == Activity .RESULT_OK ) {
231- SharedPreferenceUtils .putBoolean (this , "isInstallCert " , true );
231+ SharedPreferenceUtils .putBoolean (this , "isInstallNewCert " , true );
232232 Toast .makeText (this , "安装成功" , Toast .LENGTH_LONG ).show ();
233233 } else {
234234 Toast .makeText (this , "安装失败" , Toast .LENGTH_LONG ).show ();
You can’t perform that action at this time.
0 commit comments