Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
android-app
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
hds
flexin
android-app
Commits
d70a6d77
Commit
d70a6d77
authored
Dec 12, 2017
by
Nastuzzi Samy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix timestamp error
parent
454cbad8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
app/src/main/java/fr/utc/simde/jessy/QRCodeReaderActivity.java
...rc/main/java/fr/utc/simde/jessy/QRCodeReaderActivity.java
+5
-2
No files found.
app/src/main/java/fr/utc/simde/jessy/QRCodeReaderActivity.java
View file @
d70a6d77
...
...
@@ -474,7 +474,10 @@ public class QRCodeReaderActivity extends BaseActivity implements ZXingScannerVi
}
protected
void
checkReservation
(
final
API
api
,
final
ComedmusResponse
comedmusResponse
)
{
if
((
System
.
currentTimeMillis
()
/
1000
)
<
comedmusResponse
.
getCreatedAt
())
{
long
currentTimestamp
=
(
System
.
currentTimeMillis
()
/
1000
);
Log
.
d
(
LOG_TAG
,
"Current time: "
+
currentTimestamp
);
if
(
currentTimestamp
<
comedmusResponse
.
getCreatedAt
())
{
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
@@ -504,7 +507,7 @@ public class QRCodeReaderActivity extends BaseActivity implements ZXingScannerVi
return
;
}
if
(
(
System
.
currentTimeMillis
()
/
1000
)
>
comedmusResponse
.
getExpiresAt
())
{
if
(
currentTimestamp
>
comedmusResponse
.
getExpiresAt
())
{
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
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