[Android] Fix warning in history view layout

Geoffrey Métais git at videolan.org
Thu Dec 6 16:12:40 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Dec  6 16:12:13 2018 +0100| [dd585dc85e33c77552b3ce8b9b3e1de669ac3038] | committer: Geoffrey Métais

Fix warning in history view layout

> https://code.videolan.org/videolan/vlc-android/commit/dd585dc85e33c77552b3ce8b9b3e1de669ac3038
---

 vlc-android/res/layout/history_list.xml                   | 2 +-
 vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/layout/history_list.xml b/vlc-android/res/layout/history_list.xml
index 6036f7966..07e133617 100644
--- a/vlc-android/res/layout/history_list.xml
+++ b/vlc-android/res/layout/history_list.xml
@@ -33,7 +33,7 @@
                 android:paddingLeft="@dimen/listview_side_padding"
                 android:paddingRight="@dimen/listview_side_padding" />
             <TextView
-                android:id="@+id/android:empty"
+                android:id="@+id/empty"
                 android:layout_width="0dp"
                 android:layout_height="0dp"
                 app:layout_constraintTop_toBottomOf="@+id/searchButton"
diff --git a/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java b/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
index dd2709e40..fa6da4d52 100644
--- a/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
@@ -72,7 +72,7 @@ public class HistoryFragment extends MediaBrowserFragment<HistoryModel> implemen
     @Override
     public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
         super.onViewCreated(view, savedInstanceState);
-        mEmptyView = view.findViewById(android.R.id.empty);
+        mEmptyView = view.findViewById(R.id.empty);
         mRecyclerView = view.findViewById(android.R.id.list);
         viewModel = ViewModelProviders.of(requireActivity(), new HistoryModel.Factory(requireContext())).get(HistoryModel.class);
         viewModel.getDataset().observe(this, new Observer<List<MediaWrapper>>() {



More information about the Android mailing list