do grace period calculation only on positive periods
This commit is contained in:
parent
8f057a0c95
commit
02b7b0b4a6
|
@ -604,9 +604,11 @@ public class Account extends AbstractEntity {
|
||||||
return this.avatar;
|
return this.avatar;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void activateGracePeriod(long duration) {
|
public void activateGracePeriod(final long duration) {
|
||||||
|
if (duration > 0) {
|
||||||
this.mEndGracePeriod = SystemClock.elapsedRealtime() + duration;
|
this.mEndGracePeriod = SystemClock.elapsedRealtime() + duration;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void deactivateGracePeriod() {
|
public void deactivateGracePeriod() {
|
||||||
this.mEndGracePeriod = 0L;
|
this.mEndGracePeriod = 0L;
|
||||||
|
|
Loading…
Reference in New Issue