Added not scanned VirusTotal message

This commit is contained in:
M66B 2022-07-24 11:40:12 +02:00
parent 3f3277cbb8
commit 04c632eaa9
3 changed files with 13 additions and 0 deletions

View File

@ -346,6 +346,7 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
final ProgressBar pbAnalysis = view.findViewById(R.id.pbAnalysis);
final TextView tvAnalysis = view.findViewById(R.id.tvAnalysis);
final TextView tvLabel = view.findViewById(R.id.tvLabel);
final TextView tvUnknown = view.findViewById(R.id.tvUnknown);
tvName.setText(attachment.name);
pbAnalysis.setMax(count);
@ -353,6 +354,7 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
tvAnalysis.setText(malicious + "/" + count);
tvLabel.setText(label);
tvLabel.setVisibility(TextUtils.isEmpty(label) ? View.GONE : View.VISIBLE);
tvUnknown.setVisibility(count == 0 ? View.VISIBLE : View.GONE);
new AlertDialog.Builder(context)
.setView(view)

View File

@ -63,5 +63,15 @@
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvAnalysis" />
<TextView
android:id="@+id/tvUnknown"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_vt_unknown"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvLabel" />
</androidx.constraintlayout.widget.ConstraintLayout>
</eu.faircode.email.ScrollViewEx>

View File

@ -1467,6 +1467,7 @@
<string name="title_send_dsn">Status report</string>
<string name="title_send_receipt">Request receipt</string>
<string name="title_send_receipt_remark">Most providers and email clients ignore receipt requests</string>
<string name="title_vt_unknown">This file hasn\'t been seen by VirusTotal before, so it has not been scanned yet</string>
<string name="title_from_missing">Sender missing</string>
<string name="title_pgp_reminder">PGP keys available</string>