ent.Intent;
import android.graphics.Color;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.v4.content.LocalBroadcastManager;
import android.view.View;
import android.view.WindowManager;
import android.widget.ImageView;
@ -84,6 +86,9 @@ public class PictureVideoPlayActivity extends PictureBaseActivity implements Med
public void onClick(View v) {
int id = v.getId();
if (id == R.id.picture_left_back) {
Intent intent = new Intent("publish-video-topic-activity");
intent.putExtra("message", "finish_preview_video");
LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(intent);
finish();
} else if (id == R.id.iv_play) {
mVideoView.start();
@ -92,6 +97,14 @@ public class PictureVideoPlayActivity extends PictureBaseActivity implements Med
}
@Override
public void onBackPressed() {
super.onBackPressed();
Intent intent = new Intent("publish-video-topic-activity");
intent.putExtra("message", "finish_preview_video");
LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(intent);
}
@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(new ContextWrapper(newBase) {
@Override
|
||
| 3 | 3 |
|
| 4 | 4 |
|
| 5 | 5 |
|
| 6 |
|
|
| 6 | 7 |
|
| 7 | 8 |
|
| 8 | 9 |
|
| 10 |
|
|
| 9 | 11 |
|
| 10 | 12 |
|
| 11 | 13 |
|
|
||
| 142 | 144 |
|
| 143 | 145 |
|
| 144 | 146 |
|
| 147 |
|
|
| 148 |
|
|
| 149 |
|
|
| 145 | 150 |
|
| 146 | 151 |
|
| 147 | 152 |
|