[Android] Avoid useless playslit refreshs

Geoffrey Métais git at videolan.org
Thu Jan 7 11:45:35 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jan  7 11:33:49 2016 +0100| [909d825d7a170d4d9d8faf6d84af9ab41e72baf8] | committer: Geoffrey Métais

Avoid useless playslit refreshs

> https://code.videolan.org/videolan/vlc-android/commit/909d825d7a170d4d9d8faf6d84af9ab41e72baf8
---

 vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
index a3d80cf..1261bc0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
@@ -457,13 +457,13 @@ public class AudioPlayer extends PlaybackServiceFragment implements PlaybackServ
                 mService.setTime(prog);
                 mTime.setText(Strings.millisToString(mShowRemainingTime ? prog- mService.getLength() : prog));
                 mHeaderTime.setText(Strings.millisToString(prog));
+            }
         }
-    }
     };
 
     public void onTimeLabelClick(View view) {
         mShowRemainingTime = !mShowRemainingTime;
-        update();
+        update(false);
     }
 
     public void onPlayPauseClick(View view) {
@@ -515,13 +515,13 @@ public class AudioPlayer extends PlaybackServiceFragment implements PlaybackServ
                 mService.setRepeatType(PlaybackService.REPEAT_NONE);
                 break;
         }
-        update();
+        update(false);
     }
 
     public void onShuffleClick(View view) {
         if (mService != null)
             mService.shuffle();
-        update();
+        update(false);
     }
 
     public void showAdvancedOptions(View v) {



More information about the Android mailing list