[Android] Rename browser layout

Geoffrey Métais git at videolan.org
Tue May 12 14:46:47 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue May 12 14:46:31 2015 +0200| [d12f0d8b3c36db8e8abec6f98264357881bcff24] | committer: Geoffrey Métais

Rename browser layout

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=d12f0d8b3c36db8e8abec6f98264357881bcff24
---

 .../{network_browser.xml => directory_browser.xml} |    0
 vlc-android/res/layout/directory_view.xml          |   22 --------------------
 .../vlc/gui/browser/BaseBrowserFragment.java       |    2 +-
 3 files changed, 1 insertion(+), 23 deletions(-)

diff --git a/vlc-android/res/layout/network_browser.xml b/vlc-android/res/layout/directory_browser.xml
similarity index 100%
rename from vlc-android/res/layout/network_browser.xml
rename to vlc-android/res/layout/directory_browser.xml
diff --git a/vlc-android/res/layout/directory_view.xml b/vlc-android/res/layout/directory_view.xml
deleted file mode 100644
index 02fca7d..0000000
--- a/vlc-android/res/layout/directory_view.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent">
-    <org.videolan.vlc.widget.SwipeRefreshLayout
-        android:id="@+id/swipeLayout"
-        android:layout_width="match_parent"
-        android:layout_height="match_parent">
-
-        <ListView
-            android:id="@android:id/list"
-            android:layout_width="match_parent"
-            android:layout_height="match_parent"
-            android:paddingBottom="@dimen/listview_bottom_padding"
-            android:clipToPadding="false"
-            android:divider="?attr/background_menu_divider"
-            android:dividerHeight="0.1dp" >
-        </ListView>
-    </org.videolan.vlc.widget.SwipeRefreshLayout>
-
-    <include layout="@layout/shadow_top"/>
-</FrameLayout>
\ No newline at end of file
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
index 02b4051..5c6a5fe 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -125,7 +125,7 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
     }
 
     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){
-        View v = inflater.inflate(R.layout.network_browser, container, false);
+        View v = inflater.inflate(R.layout.directory_browser, container, false);
         mRecyclerView = (ContextMenuRecyclerView) v.findViewById(R.id.network_list);
         mEmptyView = (TextView) v.findViewById(android.R.id.empty);
         mLayoutManager = new LinearLayoutManager(getActivity());



More information about the Android mailing list