Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
whats-open-android
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
whats-open-android
Commits
2fbd0882
Commit
2fbd0882
authored
Apr 19, 2017
by
Robert Hitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added SPECIAL text when facility opens tomorrow
parent
7b5db44f
Pipeline
#1275
failed with stages
in 3 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
app/src/main/java/srct/whatsopen/presenters/MainPresenter.java
...rc/main/java/srct/whatsopen/presenters/MainPresenter.java
+6
-3
No files found.
app/src/main/java/srct/whatsopen/presenters/MainPresenter.java
View file @
2fbd0882
...
@@ -271,14 +271,17 @@ public class MainPresenter {
...
@@ -271,14 +271,17 @@ public class MainPresenter {
}
}
// Else return the opening time of the next day
// Else return the opening time of the next day
int
nextDay
=
findNextDay
(
openTimesList
,
currentDay
);
int
nextDay
=
findNextDay
(
openTimesList
,
currentDay
);
String
nextDayStr
=
FacilityPresenter
.
parseIntToDay
(
nextDay
);
String
openingTime
=
getCurrentStartTime
(
openTimesList
,
nextDay
);
String
openingTime
=
getCurrentStartTime
(
openTimesList
,
nextDay
);
openingTime
=
FacilityPresenter
.
parseTo12HourTime
(
openingTime
);
openingTime
=
FacilityPresenter
.
parseTo12HourTime
(
openingTime
);
durationMessage
=
"Opens next on "
+
nextDayStr
+
" at "
+
openingTime
;
if
(
nextDay
==
(
currentDay
+
1
)%
7
)
{
durationMessage
=
"Opens tomorrow at "
+
openingTime
;
}
else
{
String
nextDayStr
=
FacilityPresenter
.
parseIntToDay
(
nextDay
);
durationMessage
=
"Opens next on "
+
nextDayStr
+
" at "
+
openingTime
;
}
return
durationMessage
;
return
durationMessage
;
}
}
...
...
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