-
Notifications
You must be signed in to change notification settings - Fork 295
Add timebased autolap, so far to workouts without gps #1293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
gerhardol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why only in basic and for non GPS?
enable globally instead?
| Context context = requireContext(); | ||
| mDB = DBHelper.getWritableDatabase(context); | ||
| formatter = new Formatter(context); | ||
| prefs = PreferenceManager.getDefaultSharedPreferences(context); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The context is ot fixed, so I do not think this can be shared,
|
|
||
| public static void setAutolapTime(Workout w, double seconds) { | ||
| for (StepListEntry s : w.getStepList()) { | ||
| if (s.step.getIntensity() == Intensity.ACTIVE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why limit to these states?
| for (StepListEntry s : w.getStepList()) { | ||
| if (s.step.getIntensity() == Intensity.ACTIVE | ||
| || s.step.getIntensity() == Intensity.COOLDOWN) { | ||
| s.step.setAutolapTime(seconds); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the time is shorter than 10s or so for me, the time start to drift, all notifications take longer time. (in debug)
Just ignore?
No description provided.