[Android] TV: Remove useless method
Geoffrey Métais
git at videolan.org
Thu May 24 17:09:00 CEST 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed May 23 17:53:44 2018 +0200| [e9222ac8b03aa4984576bc84bda515b7c6872f53] | committer: Geoffrey Métais
TV: Remove useless method
> https://code.videolan.org/videolan/vlc-android/commit/e9222ac8b03aa4984576bc84bda515b7c6872f53
---
vlc-android/src/org/videolan/vlc/gui/tv/browser/CategoriesFragment.kt | 2 --
vlc-android/src/org/videolan/vlc/gui/tv/browser/GridFragment.java | 2 --
.../src/org/videolan/vlc/gui/tv/browser/MediaLibBrowserFragment.kt | 2 --
.../src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.java | 2 +-
.../vlc/gui/tv/browser/interfaces/BrowserFragmentInterface.java | 1 -
5 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/browser/CategoriesFragment.kt b/vlc-android/src/org/videolan/vlc/gui/tv/browser/CategoriesFragment.kt
index 2d43b763b..910ebf5be 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/browser/CategoriesFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/browser/CategoriesFragment.kt
@@ -90,8 +90,6 @@ open class CategoriesFragment<T : RefreshModel> : BrowseSupportFragment(), OnIte
if (this::provider.isInitialized) provider.refresh()
}
- override fun updateList() {}
-
protected fun update(map: Map<String, List<MediaLibraryItem>>?) {
if (map === null) return
val rows = mutableMapOf<String, ListRow>()
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/browser/GridFragment.java b/vlc-android/src/org/videolan/vlc/gui/tv/browser/GridFragment.java
index 1839317b3..64c1cc46b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/browser/GridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/browser/GridFragment.java
@@ -51,6 +51,4 @@ public class GridFragment extends VerticalGridSupportFragment implements Browser
}
public void refresh() {}
-
- public void updateList() {}
}
\ No newline at end of file
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/browser/MediaLibBrowserFragment.kt b/vlc-android/src/org/videolan/vlc/gui/tv/browser/MediaLibBrowserFragment.kt
index c2acfdfbd..9cc4e3137 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/browser/MediaLibBrowserFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/browser/MediaLibBrowserFragment.kt
@@ -68,8 +68,6 @@ abstract class MediaLibBrowserFragment<T : RefreshModel> : GridFragment(), OnIte
provider.refresh()
}
- override fun updateList() {}
-
protected fun update(list: List<MediaLibraryItem>) {
mAdapter.setItems(list, TvUtil.diffCallback)
}
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 a32be990f..5b42de499 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
@@ -103,7 +103,7 @@ public class VerticalGridActivity extends BaseTvActivity implements BrowserActiv
@Override
public void onNetworkConnectionChanged(boolean connected) {
- if (mFragment instanceof NetworkBrowserFragment) mFragment.updateList();
+ if (mFragment instanceof NetworkBrowserFragment) refresh();
}
public boolean onKeyDown(int keyCode, KeyEvent event) {
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/browser/interfaces/BrowserFragmentInterface.java b/vlc-android/src/org/videolan/vlc/gui/tv/browser/interfaces/BrowserFragmentInterface.java
index b256115e3..0ba2124bc 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/browser/interfaces/BrowserFragmentInterface.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/browser/interfaces/BrowserFragmentInterface.java
@@ -25,5 +25,4 @@ package org.videolan.vlc.gui.tv.browser.interfaces;
public interface BrowserFragmentInterface {
void refresh();
- void updateList();
}
More information about the Android
mailing list