Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Chore

ashilkne4149fa55ef4
diff --git a/mobile/lib/ui/viewer/file/file_app_bar.dart b/mobile/lib/ui/viewer/file/file_app_bar.dart
index 04df35146c..8913790766 100644
--- a/mobile/lib/ui/viewer/file/file_app_bar.dart
+++ b/mobile/lib/ui/viewer/file/file_app_bar.dart
@@ -336,7 +336,7 @@ class FileAppBarState extends State<FileAppBar> {
shouldLoopVideo
? const SizedBox.shrink()
: Transform.rotate(
- angle: (3.14 / 4) * 1,
+ angle: 3.14 / 4,
child: Container(
width: 2,
height: 24,
diff --git a/mobile/lib/ui/viewer/file/native_video_player_controls/play_pause_button.dart b/mobile/lib/ui/viewer/file/native_video_player_controls/play_pause_button.dart
index 887b98db47..06a1d40708 100644
--- a/mobile/lib/ui/viewer/file/native_video_player_controls/play_pause_button.dart
+++ b/mobile/lib/ui/viewer/file/native_video_player_controls/play_pause_button.dart
@@ -20,18 +20,6 @@ class _PlayPauseButtonState extends State<PlayPauseButton> {
.addListener(_onPlaybackStatusChanged);
}
- _onPlaybackStatusChanged() {
- if (_playbackStatus == PlaybackStatus.playing) {
- setState(() {
- _isPlaying = true;
- });
- } else {
- setState(() {
- _isPlaying = false;
- });
- }
- }
-
@override
void dispose() {
widget.controller?.onPlaybackStatusChanged
@@ -88,4 +76,16 @@ class _PlayPauseButtonState extends State<PlayPauseButton> {
PlaybackStatus? get _playbackStatus =>
widget.controller?.playbackInfo?.status;
+
+ void _onPlaybackStatusChanged() {
+ if (_playbackStatus == PlaybackStatus.playing) {
+ setState(() {
+ _isPlaying = true;
+ });
+ } else {
+ setState(() {
+ _isPlaying = false;
+ });
+ }
+ }
}