Skip to content

Conversation

@jonasoreland
Copy link
Owner

No description provided.

Copy link
Collaborator

@gerhardol gerhardol left a 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);
Copy link
Collaborator

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
Copy link
Collaborator

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);
Copy link
Collaborator

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?

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.

3 participants