mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-02 00:25:10 -04:00
Whitespace cleanup
This commit is contained in:
parent
9a0f650cd9
commit
68f5f009f1
@ -52,13 +52,13 @@ public class AttachmentView extends FrameLayout {
|
|||||||
public String contentType;
|
public String contentType;
|
||||||
public long size;
|
public long size;
|
||||||
public ImageView iconView;
|
public ImageView iconView;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Regular expression that represents characters that aren't allowed
|
* Regular expression that represents characters that aren't allowed
|
||||||
* to be used in file names saved using K-9
|
* to be used in file names saved using K-9
|
||||||
*/
|
*/
|
||||||
private static final String specialCharacters = new String("[^\\d\\s\\w!" +
|
private static final String specialCharacters = new String("[^\\d\\s\\w!" +
|
||||||
"#\\$%&'\\(\\)\\-@\\^_`\\{\\}~.,]");
|
"#\\$%&'\\(\\)\\-@\\^_`\\{\\}~.,]");
|
||||||
|
|
||||||
private AttachmentFileDownloadCallback callback;
|
private AttachmentFileDownloadCallback callback;
|
||||||
|
|
||||||
@ -222,12 +222,12 @@ public class AttachmentView extends FrameLayout {
|
|||||||
/**
|
/**
|
||||||
* Removes characters that aren't allowed to be used in file names saved
|
* Removes characters that aren't allowed to be used in file names saved
|
||||||
* in K-9 application.
|
* in K-9 application.
|
||||||
*
|
*
|
||||||
* @param filename The original file name.
|
* @param filename The original file name.
|
||||||
* @return A file name with only legal characters.
|
* @return A file name with only legal characters.
|
||||||
*/
|
*/
|
||||||
private String removeSpecialCharacters(String filename) {
|
private String removeSpecialCharacters(String filename) {
|
||||||
return filename.replaceAll(specialCharacters, "");
|
return filename.replaceAll(specialCharacters, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user