[Android] TV: remove unused code
Geoffrey Métais
git at videolan.org
Thu Feb 7 13:51:32 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 7 11:27:09 2019 +0100| [701b723464a53d6cb3da67ab707076d7167d31de] | committer: Geoffrey Métais
TV: remove unused code
> https://code.videolan.org/videolan/vlc-android/commit/701b723464a53d6cb3da67ab707076d7167d31de
---
.../videolan/vlc/gui/tv/browser/VerticalGridActivity.java | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.java b/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.java
index d301e56bf..f4379e5f8 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.java
@@ -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)
More information about the Android
mailing list