mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-16 13:55:03 -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()).
|
String primaryUserId = UncachedKeyRing.decodeFromData(content.getBytes()).
|
||||||
getPublicKey().getPrimaryUserIdWithFallback();
|
getPublicKey().getPrimaryUserIdWithFallback();
|
||||||
final File contentFile = new File(getActivity().getExternalCacheDir(),
|
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);
|
FileWriter contentFileWriter = new FileWriter(contentFile, false);
|
||||||
BufferedWriter contentWriter = new BufferedWriter(contentFileWriter);
|
BufferedWriter contentWriter = new BufferedWriter(contentFileWriter);
|
||||||
contentWriter.write(content);
|
contentWriter.write(content);
|
||||||
|
Loading…
Reference in New Issue
Block a user