Moved onPause from WidevineSamplePlayer class to VideoPlayerView class.
BUG: 5561197 Change-Id: I0486c04094e3535106726ef9902814315dd07522
This commit is contained in:
@@ -22,6 +22,7 @@ import android.content.Context;
|
|||||||
import android.media.MediaPlayer;
|
import android.media.MediaPlayer;
|
||||||
import android.media.MediaPlayer.OnErrorListener;
|
import android.media.MediaPlayer.OnErrorListener;
|
||||||
import android.media.MediaPlayer.OnCompletionListener;
|
import android.media.MediaPlayer.OnCompletionListener;
|
||||||
|
import android.util.Log;
|
||||||
|
|
||||||
public class VideoPlayerView extends Activity {
|
public class VideoPlayerView extends Activity {
|
||||||
private final static float BUTTON_FONT_SIZE = 10;
|
private final static float BUTTON_FONT_SIZE = 10;
|
||||||
@@ -341,4 +342,10 @@ public class VideoPlayerView extends Activity {
|
|||||||
private void updateLogs() {
|
private void updateLogs() {
|
||||||
hRefresh.sendEmptyMessage(REFRESH);
|
hRefresh.sendEmptyMessage(REFRESH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onPause() {
|
||||||
|
Log.v("VideoPlayerView", "------------------- onPause ----------------");
|
||||||
|
onStop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import android.os.Bundle;
|
|||||||
import android.widget.TabHost;
|
import android.widget.TabHost;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
public class WidevineSamplePlayer extends TabActivity {
|
public class WidevineSamplePlayer extends TabActivity {
|
||||||
|
|
||||||
@@ -83,10 +82,4 @@ public class WidevineSamplePlayer extends TabActivity {
|
|||||||
// Commit the edits!
|
// Commit the edits!
|
||||||
editor.commit();
|
editor.commit();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onPause() {
|
|
||||||
Log.v("WVSamplePlayer", "------------------- onPause ----------------");
|
|
||||||
onStop();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user