Commit a4314918 authored by Sébastien Toque's avatar Sébastien Toque
Browse files

Set title for video groups

parent fd69ba39
......@@ -57,6 +57,7 @@ import android.os.Handler;
import android.os.Message;
import android.preference.PreferenceManager;
import android.support.v4.app.FragmentActivity;
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarActivity;
import android.util.DisplayMetrics;
import android.util.Log;
......@@ -130,7 +131,11 @@ public class VideoGridFragment extends SherlockGridFragment implements ISortable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
((ActionBarActivity) getActivity()).getSupportActionBar().setTitle(R.string.video);
ActionBar actionBar = ((ActionBarActivity) getActivity()).getSupportActionBar();
if (mGroup == null)
actionBar.setTitle(R.string.video);
else
actionBar.setTitle(mGroup);
View v = inflater.inflate(R.layout.video_grid, container, false);
......
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