when long-tap opening a video player, kill everything surface-related in headlines

This commit is contained in:
Andrew Dolgov 2017-05-31 23:03:38 +03:00
parent 9420b9570e
commit bb32ac7dc4

View File

@ -1294,6 +1294,14 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
@Override @Override
public boolean onLongClick(View v) { public boolean onLongClick(View v) {
if (m_mediaPlayer != null) {
m_mediaPlayer.release();
}
if (m_activeSurface != null) {
m_activeSurface.setVisibility(View.GONE);
}
openGalleryForType(article, holder, null); openGalleryForType(article, holder, null);
return true; return true;