mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-17 07:30:16 -05:00
Reformat according to style
This commit is contained in:
parent
4b0d016bb7
commit
98c1935c85
@ -1,8 +1,11 @@
|
|||||||
package com.fsck.k9.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
|
|
||||||
public class K9MailLib {
|
public class K9MailLib {
|
||||||
private static DebugStatus debugStatus = new DefaultDebugStatus();
|
private static DebugStatus debugStatus = new DefaultDebugStatus();
|
||||||
private K9MailLib() {}
|
|
||||||
|
private K9MailLib() {
|
||||||
|
}
|
||||||
|
|
||||||
public static final String LOG_TAG = "k9";
|
public static final String LOG_TAG = "k9";
|
||||||
public static final int PUSH_WAKE_LOCK_TIMEOUT = 60000;
|
public static final int PUSH_WAKE_LOCK_TIMEOUT = 60000;
|
||||||
@ -54,6 +57,7 @@ public class K9MailLib {
|
|||||||
|
|
||||||
public static interface DebugStatus {
|
public static interface DebugStatus {
|
||||||
boolean enabled();
|
boolean enabled();
|
||||||
|
|
||||||
boolean debugSensitive();
|
boolean debugSensitive();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,15 +70,32 @@ public class K9MailLib {
|
|||||||
|
|
||||||
private static interface WritableDebugStatus extends DebugStatus {
|
private static interface WritableDebugStatus extends DebugStatus {
|
||||||
void setEnabled(boolean enabled);
|
void setEnabled(boolean enabled);
|
||||||
|
|
||||||
void setSensitive(boolean sensitive);
|
void setSensitive(boolean sensitive);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class DefaultDebugStatus implements WritableDebugStatus {
|
private static class DefaultDebugStatus implements WritableDebugStatus {
|
||||||
private boolean enabled;
|
private boolean enabled;
|
||||||
private boolean sensitive;
|
private boolean sensitive;
|
||||||
@Override public boolean enabled() { return enabled; }
|
|
||||||
@Override public boolean debugSensitive() { return sensitive; }
|
@Override
|
||||||
@Override public void setEnabled(boolean enabled) { this.enabled = enabled; }
|
public boolean enabled() {
|
||||||
@Override public void setSensitive(boolean sensitive) { this.sensitive = sensitive; }
|
return enabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean debugSensitive() {
|
||||||
|
return sensitive;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setEnabled(boolean enabled) {
|
||||||
|
this.enabled = enabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setSensitive(boolean sensitive) {
|
||||||
|
this.sensitive = sensitive;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user