Commit a3f36a50 authored by Geoffrey Métais's avatar Geoffrey Métais

TV: remove unused code

parent 6c0db159
......@@ -29,7 +29,6 @@ import android.view.View;
import android.widget.ProgressBar;
import android.widget.TextView;
import org.videolan.vlc.ExternalMonitor;
import org.videolan.vlc.R;
import org.videolan.vlc.VLCApplication;
import org.videolan.vlc.gui.tv.MainTvActivity;
......@@ -39,9 +38,7 @@ import org.videolan.vlc.gui.tv.browser.interfaces.DetailsFragment;
import org.videolan.vlc.interfaces.Sortable;
import org.videolan.vlc.util.Constants;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Observer;
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
public class VerticalGridActivity extends BaseTvActivity implements BrowserActivityInterface {
......@@ -99,12 +96,6 @@ public class VerticalGridActivity extends BaseTvActivity implements BrowserActiv
.add(R.id.tv_fragment_placeholder, ((Fragment)mFragment))
.commit();
}
ExternalMonitor.INSTANCE.getConnected().observe(this, new Observer<Boolean>() {
@Override
public void onChanged(@Nullable Boolean connected) {
onNetworkConnectionChanged(connected);
}
});
}
@Override
......@@ -112,10 +103,6 @@ public class VerticalGridActivity extends BaseTvActivity implements BrowserActiv
mFragment.refresh();
}
public void onNetworkConnectionChanged(boolean connected) {
if (mFragment instanceof NetworkBrowserFragment) refresh();
}
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if ((mFragment instanceof DetailsFragment)
......
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