mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-11-22 07:58:20 -05:00
Download now using the new Navbar
This commit is contained in:
parent
54c3dd01a9
commit
d61f9057b6
@ -8,8 +8,10 @@ import android.widget.AdapterView;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.ListView;
|
||||
|
||||
import org.bspeice.minimalbible.Injector;
|
||||
import org.bspeice.minimalbible.R;
|
||||
import org.bspeice.minimalbible.activity.BaseNavigationDrawerFragment;
|
||||
import org.bspeice.minimalbible.activity.NavDrawerAdapter;
|
||||
import org.crosswire.jsword.book.BookCategory;
|
||||
|
||||
import java.util.List;
|
||||
@ -25,7 +27,7 @@ public class DownloadNavDrawerFragment extends BaseNavigationDrawerFragment {
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
((DownloadActivity)getActivity()).inject(this);
|
||||
((Injector)getActivity()).inject(this);
|
||||
|
||||
mDrawerListView = (ListView) inflater.inflate(
|
||||
R.layout.fragment_navigation_drawer, container, false);
|
||||
@ -38,9 +40,8 @@ public class DownloadNavDrawerFragment extends BaseNavigationDrawerFragment {
|
||||
}
|
||||
});
|
||||
|
||||
mDrawerListView.setAdapter(new ArrayAdapter<BookCategory>(getActionBar()
|
||||
.getThemedContext(), android.R.layout.simple_list_item_1,
|
||||
android.R.id.text1, validCategories));
|
||||
mDrawerListView.setAdapter(new NavDrawerAdapter<BookCategory>(getActivity(),
|
||||
validCategories));
|
||||
mDrawerListView.setItemChecked(mCurrentSelectedPosition, true);
|
||||
return mDrawerListView;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user