mirror of
https://github.com/nextcloud/android.git
synced 2024-11-25 22:55:46 +03:00
Fixed NPE when hiding ssl cert
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
96aecac8ed
commit
e503106960
1 changed files with 0 additions and 12 deletions
|
@ -23,7 +23,6 @@ package com.owncloud.android.ui.adapter;
|
|||
import android.net.http.SslCertificate;
|
||||
import android.view.View;
|
||||
|
||||
import com.owncloud.android.R;
|
||||
import com.owncloud.android.databinding.SslUntrustedCertLayoutBinding;
|
||||
import com.owncloud.android.ui.dialog.SslUntrustedCertDialog;
|
||||
|
||||
|
@ -57,8 +56,6 @@ public class SslCertificateViewAdapter implements SslUntrustedCertDialog.Certifi
|
|||
showSubject(mCertificate.getIssuedTo(), binding);
|
||||
showIssuer(mCertificate.getIssuedBy(), binding);
|
||||
showValidity(mCertificate.getValidNotBeforeDate(), mCertificate.getValidNotAfterDate(), binding);
|
||||
hideSignature(binding);
|
||||
|
||||
} else {
|
||||
binding.nullCert.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
@ -110,13 +107,4 @@ public class SslCertificateViewAdapter implements SslUntrustedCertDialog.Certifi
|
|||
binding.labelIssuerST.setVisibility(View.GONE);
|
||||
binding.labelIssuerL.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
private void hideSignature(@NonNull SslUntrustedCertLayoutBinding binding) {
|
||||
binding.labelSignature.setVisibility(View.GONE);
|
||||
binding.labelSignatureAlgorithm.setVisibility(View.GONE);
|
||||
|
||||
binding.valueSignatureAlgorithm.setVisibility(View.GONE);
|
||||
// FIXME There IS no R.id.value_signature in this layout !!
|
||||
binding.getRoot().findViewById(R.id.value_signature).setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue