Commit da1c8f32 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

HistoryFragment: show a message to the user when there is no history

parent 143f932c
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black">
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@color/item_common"
android:dividerHeight="1dp" />
<TextView android:id="@android:id/empty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:paddingTop="30dip"
android:textSize="20dip"
android:text="@string/nohistory"/>
</LinearLayout>
\ No newline at end of file
......@@ -69,6 +69,7 @@
<string name="mediafiles">Media files</string>
<string name="notavailable">not available</string>
<string name="nosubdirectory">No subdirectories.</string>
<string name="nohistory">You have no playback history yet.</string>
<string name="validation">Are you sure?</string>
<string name="lock_rotation">Lock screen rotation</string>
<string name="locked">Locked</string>
......
......@@ -52,7 +52,7 @@ public class HistoryFragment extends SherlockListFragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
View v = inflater.inflate(R.layout.directory_view, container, false);
View v = inflater.inflate(R.layout.history_list, container, false);
setListAdapter(mHistoryAdapter);
return v;
}
......
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