[Android] PlaybackServiceActivity: simplify

Thomas Guillem git at videolan.org
Wed Jul 1 19:19:18 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jul  1 19:01:41 2015 +0200| [a5a1a480c3e7526281c5c23e95914f024d3e102a] | committer: Thomas Guillem

PlaybackServiceActivity: simplify

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a5a1a480c3e7526281c5c23e95914f024d3e102a
---

 .../src/org/videolan/vlc/gui/PlaybackServiceActivity.java      |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/PlaybackServiceActivity.java b/vlc-android/src/org/videolan/vlc/gui/PlaybackServiceActivity.java
index 3724e86..0ea78b7 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PlaybackServiceActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/PlaybackServiceActivity.java
@@ -32,16 +32,10 @@ import org.videolan.vlc.PlaybackService;
 import java.util.ArrayList;
 
 public class PlaybackServiceActivity extends Activity implements PlaybackService.Client.Callback {
-    private Helper mHelper;
+    final private Helper mHelper = new Helper(this, this);
     protected PlaybackService mService;
 
     @Override
-    protected void onCreate(Bundle savedInstanceState) {
-        super.onCreate(savedInstanceState);
-        mHelper = new Helper(this, this);
-    }
-
-    @Override
     protected void onStart() {
         super.onStart();
         mHelper.onStart();



More information about the Android mailing list