mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-13 20:35:10 -05:00
Use FILE_EXTENSION constants
This commit is contained in:
parent
be3e52884f
commit
af1809eebc
@ -235,7 +235,7 @@ public class ViewKeyAdvShareFragment extends LoaderFragment implements
|
||||
String primaryUserId = UncachedKeyRing.decodeFromData(content.getBytes()).
|
||||
getPublicKey().getPrimaryUserIdWithFallback();
|
||||
final File contentFile = new File(getActivity().getExternalCacheDir(),
|
||||
primaryUserId + ".pgp.asc");
|
||||
primaryUserId + Constants.FILE_EXTENSION_PGP_ALTERNATE + Constants.FILE_EXTENSION_ASC);
|
||||
FileWriter contentFileWriter = new FileWriter(contentFile, false);
|
||||
BufferedWriter contentWriter = new BufferedWriter(contentFileWriter);
|
||||
contentWriter.write(content);
|
||||
|
Loading…
Reference in New Issue
Block a user