correct checking for valid subscription

This commit is contained in:
Phillip Thelen 2017-02-23 11:06:47 +01:00
parent 7e9c70fae8
commit 5a65b3b96b
2 changed files with 5 additions and 5 deletions

View file

@ -62,10 +62,10 @@ dependencies {
compile('com.mikepenz:materialdrawer:5.3.6@aar') {
transitive = true
}
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:design:25.1.0'
compile 'com.android.support:recyclerview-v7:25.1.0'
compile 'com.android.support:preference-v14:25.1.0'
compile 'com.android.support:appcompat-v7:25.1.1'
compile 'com.android.support:design:25.1.1'
compile 'com.android.support:recyclerview-v7:25.1.1'
compile 'com.android.support:preference-v14:25.1.1'
compile 'com.android.support:multidex:1.0.1'
//QR Code

View file

@ -50,7 +50,7 @@ public class SubscriptionPlan extends BaseModel {
public boolean isActive() {
Date today = new Date();
return (this.dateCreated != null && this.dateCreated.before(today)) && (this.dateTerminated == null || this.dateTerminated.after(today));
return planId != null && this.dateTerminated == null || this.dateTerminated.after(today);
}
@Override