mirror of
https://github.com/NiciDieNase/chaosflix
synced 2025-02-17 05:28:24 +00:00
fix getParentConferenceId
This commit is contained in:
parent
b06978adcf
commit
858523db8d
1 changed files with 4 additions and 1 deletions
|
@ -42,7 +42,6 @@ public class Event extends SugarRecord implements Parcelable, Comparable<Event>
|
|||
String conferenceUrl;
|
||||
List<Recording> recordings;
|
||||
|
||||
|
||||
protected Event(Parcel in) {
|
||||
guid = in.readString();
|
||||
title = in.readString();
|
||||
|
@ -107,6 +106,10 @@ public class Event extends SugarRecord implements Parcelable, Comparable<Event>
|
|||
}
|
||||
|
||||
public long getParentConferenceID() {
|
||||
if(parentConferenceID == 0){
|
||||
String[] split = conferenceUrl.split("/");
|
||||
parentConferenceID = Long.parseLong(split[split.length-1]);
|
||||
}
|
||||
return parentConferenceID;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue