Skip to content

Change time variable type to float#3

Merged
ghsdh3409 merged 1 commit into
masterfrom
float-current-time-android
Mar 31, 2018
Merged

Change time variable type to float#3
ghsdh3409 merged 1 commit into
masterfrom
float-current-time-android

Conversation

@ghsdh3409

Copy link
Copy Markdown
Member

I changed all of variable type related to time to float.

@ghsdh3409
ghsdh3409 requested a review from ohtangza March 31, 2018 05:41
@ghsdh3409
ghsdh3409 force-pushed the float-current-time-android branch from 174ba26 to 31a24fb Compare March 31, 2018 05:43
WritableMap event = Arguments.createMap();
event.putString("state", "seeking");
event.putInt("currentTime", milliSeconds / 1000);
event.putDouble("currentTime", milliSeconds / 1000.0);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No exists putFloat

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked. Thanks! Little interesting that the original author used sometime milliSecs and sometimes secs.

@ghsdh3409 ghsdh3409 assigned ghsdh3409 and unassigned ohtangza Mar 31, 2018
@ghsdh3409

Copy link
Copy Markdown
Member Author

@ohtangza I will merge this pull request without your review to test this! (Test is little inconvenient since podspec...)

@ghsdh3409
ghsdh3409 merged commit a4c56a0 into master Mar 31, 2018

@ohtangza ohtangza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked all the changes!

WritableMap event = Arguments.createMap();
event.putString("state", "seeking");
event.putInt("currentTime", milliSeconds / 1000);
event.putDouble("currentTime", milliSeconds / 1000.0);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked. Thanks! Little interesting that the original author used sometime milliSecs and sometimes secs.

@ghsdh3409 ghsdh3409 mentioned this pull request Mar 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants