Commit 22cdd18b authored by Alexandre Perraud's avatar Alexandre Perraud

UI : Use network menu icon

parent 9d8d8884
......@@ -49,6 +49,7 @@
<attr name="ic_menu_folder" format="reference" />
<attr name="ic_menu_history" format="reference" />
<attr name="ic_menu_openmrl" format="reference" />
<attr name="ic_menu_network" format="reference" />
<attr name="ic_menu_preferences" format="reference" />
<attr name="ic_menu_cone" format="reference" />
<attr name="ic_move_media" format="reference" />
......
......@@ -68,6 +68,7 @@
<item name="ic_menu_folder">@drawable/ic_menu_folder</item>
<item name="ic_menu_history">@drawable/ic_menu_history</item>
<item name="ic_menu_openmrl">@drawable/ic_menu_goto</item>
<item name="ic_menu_network">@drawable/ic_menu_network</item>
<item name="ic_menu_preferences">@drawable/ic_menu_preferences</item>
<item name="ic_menu_cone">@drawable/ic_menu_cone</item>
<item name="ic_move_media">@drawable/ic_move_media</item>
......@@ -136,6 +137,7 @@
<item name="ic_menu_folder">@drawable/ic_menu_folder_w</item>
<item name="ic_menu_history">@drawable/ic_menu_history_w</item>
<item name="ic_menu_openmrl">@drawable/ic_menu_goto_w</item>
<item name="ic_menu_network">@drawable/ic_menu_network_w</item>
<item name="ic_menu_preferences">@drawable/ic_menu_preferences_w</item>
<item name="ic_menu_cone">@drawable/ic_menu_cone_w</item>
<item name="ic_move_media">@drawable/ic_move_media_w</item>
......
......@@ -82,9 +82,9 @@ public class SidebarAdapter extends BaseAdapter {
entries = new ArrayList<SidebarEntry>();
entries.add(new SidebarEntry(SidebarEntry.ID_VIDEO, R.string.video, R.attr.ic_menu_video, SidebarEntry.TYPE_FRAGMENT));
entries.add(new SidebarEntry(SidebarEntry.ID_AUDIO, R.string.audio, R.attr.ic_menu_audio, SidebarEntry.TYPE_FRAGMENT));
entries.add(new SidebarEntry(SidebarEntry.ID_NETWORK, R.string.network_browsing, R.attr.ic_menu_openmrl, SidebarEntry.TYPE_FRAGMENT));
entries.add(new SidebarEntry(SidebarEntry.ID_MRL, R.string.open_mrl, R.attr.ic_menu_openmrl, SidebarEntry.TYPE_FRAGMENT));
entries.add(new SidebarEntry(SidebarEntry.ID_DIRECTORIES, R.string.directories, R.attr.ic_menu_folder, SidebarEntry.TYPE_FRAGMENT));
entries.add(new SidebarEntry(SidebarEntry.ID_NETWORK, R.string.network_browsing, R.attr.ic_menu_network, SidebarEntry.TYPE_FRAGMENT));
entries.add(new SidebarEntry(SidebarEntry.ID_MRL, R.string.open_mrl, R.attr.ic_menu_openmrl, SidebarEntry.TYPE_FRAGMENT));
// entries.add(new SidebarEntry(SidebarEntry.ID_HISTORY, R.string.history, R.attr.ic_menu_history, SidebarEntry.TYPE_FRAGMENT));
sidebarFragments = new ArrayList<String>();
for(SidebarEntry e : entries) {
......
......@@ -186,7 +186,7 @@ public class NetworkAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolde
case MediaWrapper.TYPE_AUDIO:
return R.drawable.ic_menu_audio;
case MediaWrapper.TYPE_DIR:
return R.drawable.ic_menu_folder;
return R.drawable.ic_menu_network;
case MediaWrapper.TYPE_VIDEO:
return R.drawable.ic_menu_video;
case MediaWrapper.TYPE_SUBTITLE:
......
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