Skip to content

Commit

Permalink
Merge pull request #193 from a-mabe/pre-release
Browse files Browse the repository at this point in the history
1.5.2
  • Loading branch information
a-mabe authored Jan 6, 2025
2 parents 756eafa + 3329501 commit e5446ba
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 76 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ jobs:
BuildiOSRelease:
runs-on: macos-latest
environment: production
needs: GetVersionNumber
permissions:
contents: write
steps:
Expand Down
4 changes: 4 additions & 0 deletions lib/pages/active_timer/workout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import 'package:openhiit/pages/active_timer/widgets/timer_complete.dart';
import 'package:openhiit/utils/functions.dart';
import 'package:openhiit/widgets/timer_card_item_animated.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:wakelock_plus/wakelock_plus.dart';

class RunTimer extends StatefulWidget {
final TimerType timer;
Expand Down Expand Up @@ -44,6 +45,7 @@ class RunTimerState extends State<RunTimer> {
@override
void initState() {
super.initState();
WakelockPlus.enable();
initializeAudioSession();
loadPreferences();
_controllerCenter =
Expand All @@ -63,6 +65,7 @@ class RunTimerState extends State<RunTimer> {
@override
void dispose() {
_controllerCenter.dispose();
WakelockPlus.disable();
super.dispose();
}

Expand Down Expand Up @@ -119,6 +122,7 @@ class RunTimerState extends State<RunTimer> {
_paused = !_paused;
});
_paused ? _controller.pause() : _controller.resume();
_paused ? WakelockPlus.disable() : WakelockPlus.enable();
}

Color backgroundColor(String state) {
Expand Down
Loading

0 comments on commit e5446ba

Please sign in to comment.