Merge "Moved onPause from WidevineSamplePlayer class to VideoPlayerView class. BUG: 5561197" into ics-mr1
This commit is contained in:
@@ -22,6 +22,7 @@ import android.content.Context;
|
||||
import android.media.MediaPlayer;
|
||||
import android.media.MediaPlayer.OnErrorListener;
|
||||
import android.media.MediaPlayer.OnCompletionListener;
|
||||
import android.util.Log;
|
||||
|
||||
public class VideoPlayerView extends Activity {
|
||||
private final static float BUTTON_FONT_SIZE = 10;
|
||||
@@ -341,4 +342,10 @@ public class VideoPlayerView extends Activity {
|
||||
private void updateLogs() {
|
||||
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.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.util.Log;
|
||||
|
||||
public class WidevineSamplePlayer extends TabActivity {
|
||||
|
||||
@@ -83,10 +82,4 @@ public class WidevineSamplePlayer extends TabActivity {
|
||||
// Commit the edits!
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
Log.v("WVSamplePlayer", "------------------- onPause ----------------");
|
||||
onStop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user