Commit 3d0ca611 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Do not set OnDragListener before Nougat

parent c142ffe8
......@@ -38,6 +38,7 @@ import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import org.videolan.libvlc.util.AndroidUtil;
import org.videolan.vlc.R;
import org.videolan.vlc.gui.browser.ExtensionBrowser;
......@@ -53,7 +54,7 @@ public class ContentActivity extends AudioPlayerContainerActivity implements Sea
protected void onPostCreate(@Nullable Bundle savedInstanceState) {
final View view = getWindow().peekDecorView();
final View view = AndroidUtil.isNougatOrLater ? getWindow().peekDecorView() : null;
if (view != null) view.setOnDragListener(new View.OnDragListener() {
public boolean onDrag(View v, DragEvent event) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment