Browse Source

Remove "." suffix

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 year ago
parent
commit
14d3257036
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/main/java/com/owncloud/android/utils/EncryptionUtils.java

+ 1 - 1
app/src/main/java/com/owncloud/android/utils/EncryptionUtils.java

@@ -548,7 +548,7 @@ public final class EncryptionUtils {
     }
 
     public static EncryptedFile encryptFile(Context context, File file, Cipher cipher) throws InvalidParameterSpecException, IOException {
-        File tempEncryptedFile = File.createTempFile(file.getName(), ".", context.getCacheDir());
+        File tempEncryptedFile = File.createTempFile(file.getName(), null, context.getCacheDir());
         encryptFileWithGivenCipher(file, tempEncryptedFile, cipher);
         String authenticationTagString = getAuthenticationTag(cipher);
         return new EncryptedFile(tempEncryptedFile, authenticationTagString);