Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-android
Commits
fd6f721e
Commit
fd6f721e
authored
May 07, 2017
by
Robert Hitt
Browse files
Fixed some logic in FacilityPresenter
- really have no clue what I was thinking when I committed this garbage originally
parent
eef4c0ce
Pipeline
#1344
failed with stages
in 2 minutes and 50 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
app/src/main/java/srct/whatsopen/presenters/FacilityPresenter.java
View file @
fd6f721e
...
...
@@ -118,14 +118,12 @@ public class FacilityPresenter {
if
(
o
.
getStartTime
().
equals
(
"00:00:00"
)
&&
o
.
getEndTime
().
equals
(
"23:59:59"
)
||
o
.
getEndTime
().
equals
(
"00:00:00"
))
{
doesNotClose
=
true
;
}
// check to make sure the facility is open every day of the week
// so, if the start day is 0 and the end day is 6, 6 - 0 + 1 == 7
counter
+=
(
o
.
getEndDay
()
-
o
.
getStartDay
())
+
1
;
counter
++;
}
}
if
(
counter
!=
7
)
{
if
(
counter
!=
openTimesList
.
size
()
)
{
doesNotClose
=
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment