mirror of https://codeberg.org/gitnex/GitNex.git
Fixing popup bug.
This commit is contained in:
parent
ae0009f553
commit
59e8f6f94a
|
@ -467,7 +467,7 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
|||
Toasty.info(getApplicationContext(), getResources().getString(R.string.malformedUrl));
|
||||
}
|
||||
else {
|
||||
Toasty.info(getApplicationContext(), getResources().getString(R.string.commentError));
|
||||
Toasty.info(getApplicationContext(), getResources().getString(R.string.genericError));
|
||||
}
|
||||
|
||||
enableProcessButton();
|
||||
|
|
|
@ -598,15 +598,16 @@ public class MemorizingTrustManager implements X509TrustManager {
|
|||
|
||||
if(interact(certChainMessage(chain, cause), R.string.mtm_accept_cert) == MTMDecision.DECISION_ALWAYS) {
|
||||
storeCert(chain[0]); // only store the server cert, not the whole chain
|
||||
} else {
|
||||
throw (cause);
|
||||
}
|
||||
|
||||
throw (cause);
|
||||
}
|
||||
|
||||
private boolean interactHostname(X509Certificate cert, String hostname) {
|
||||
|
||||
if(interact(hostNameMessage(cert, hostname), R.string.mtm_accept_servername) == MTMDecision.DECISION_ALWAYS) {
|
||||
storeCert(hostname, cert);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue