mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-08 05:26:10 +00:00
correct checking for valid subscription
This commit is contained in:
parent
7e9c70fae8
commit
5a65b3b96b
2 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue