Refactoring

This commit is contained in:
M66B
2023-12-13 07:21:15 +01:00
parent 9f1bab8e19
commit 9569b0e28e
14 changed files with 25 additions and 28 deletions

View File

@@ -132,7 +132,7 @@ public class AdapterCertificate extends RecyclerView.Adapter<AdapterCertificate.
if (certificate == null)
return null;
File dir = Helper.ensureExists(context.getFilesDir(), "shared");
File dir = Helper.ensureExists(context, "shared");
String name = Helper.sanitizeFilename(certificate.email);
File file = new File(dir, name + ".pem");
Helper.writeText(file, certificate.getPem());