|
@@ -15,6 +15,7 @@ import android.view.ViewGroup;
|
|
|
import android.view.Window;
|
|
|
import android.widget.ImageButton;
|
|
|
import android.widget.ImageView;
|
|
|
+import android.widget.TextView;
|
|
|
|
|
|
import com.xplora.xpchat.R;
|
|
|
import com.xplora.xpchat.manager.MediaPlayerUtils;
|
|
@@ -49,10 +50,17 @@ public class VideoFragment extends DialogFragment implements Listener.PlayListen
|
|
|
getDialog().getWindow().requestFeature(Window.FEATURE_SWIPE_TO_DISMISS);
|
|
|
View rootView = inflater.inflate(R.layout.chat_fragment_video, container, false);
|
|
|
SurfaceView surfaceView = (SurfaceView) rootView.findViewById(R.id.surfaceView);
|
|
|
- mSurfaceHolder = surfaceView.getHolder();
|
|
|
mActionButton = (ImageView)rootView.findViewById(R.id.mActionBtn);
|
|
|
+ TextView noFileText = (TextView)rootView.findViewById(R.id.mNoFileText);
|
|
|
+
|
|
|
+ mSurfaceHolder = surfaceView.getHolder();
|
|
|
mActionButton.setOnClickListener(onActionClick);
|
|
|
initVideo();
|
|
|
+
|
|
|
+ Uri uri = Uri.parse(bean.videoPath);
|
|
|
+ if (noFileText != null) {
|
|
|
+ noFileText.setVisibility(uri == null ? View.VISIBLE : View.GONE);
|
|
|
+ }
|
|
|
return rootView;
|
|
|
}
|
|
|
|