|
@@ -5,6 +5,7 @@ import android.content.ContextWrapper;
|
|
|
import android.graphics.Color;
|
|
|
import android.media.MediaPlayer;
|
|
|
import android.os.Bundle;
|
|
|
+import android.text.TextUtils;
|
|
|
import android.view.View;
|
|
|
import android.view.WindowManager;
|
|
|
import android.widget.ImageView;
|
|
@@ -44,6 +45,10 @@ public class PictureVideoPlayActivity extends PictureBaseActivity implements
|
|
|
protected void initWidgets() {
|
|
|
super.initWidgets();
|
|
|
video_path = getIntent().getStringExtra("video_path");
|
|
|
+ if (TextUtils.isEmpty(video_path)) {
|
|
|
+ finish();
|
|
|
+ return;
|
|
|
+ }
|
|
|
picture_left_back = findViewById(R.id.picture_left_back);
|
|
|
mVideoView = findViewById(R.id.video_view);
|
|
|
mVideoView.setBackgroundColor(Color.BLACK);
|