mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-11-04 23:28:19 -05:00
Rename the ExpListNavDrawerFragment
This commit is contained in:
parent
18c9df404e
commit
0e7680ca9e
@ -37,7 +37,7 @@ public class BibleViewer extends BaseActivity implements
|
|||||||
* Fragment managing the behaviors, interactions and presentation of the
|
* Fragment managing the behaviors, interactions and presentation of the
|
||||||
* navigation drawer.
|
* navigation drawer.
|
||||||
*/
|
*/
|
||||||
private ExpListNavDrawerFragment mNavigationDrawerFragment;
|
private BookChapterNavFragment mNavigationDrawerFragment;
|
||||||
/**
|
/**
|
||||||
* Used to store the last screen title. For use in
|
* Used to store the last screen title. For use in
|
||||||
* {@link #restoreActionBar()}.
|
* {@link #restoreActionBar()}.
|
||||||
@ -93,7 +93,7 @@ public class BibleViewer extends BaseActivity implements
|
|||||||
.commit();
|
.commit();
|
||||||
setContentView(R.layout.activity_bible_viewer);
|
setContentView(R.layout.activity_bible_viewer);
|
||||||
|
|
||||||
mNavigationDrawerFragment = (ExpListNavDrawerFragment) getSupportFragmentManager()
|
mNavigationDrawerFragment = (BookChapterNavFragment) getSupportFragmentManager()
|
||||||
.findFragmentById(R.id.navigation_drawer);
|
.findFragmentById(R.id.navigation_drawer);
|
||||||
mTitle = getTitle();
|
mTitle = getTitle();
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ import rx.functions.Func1;
|
|||||||
injects = {
|
injects = {
|
||||||
BibleViewer.class,
|
BibleViewer.class,
|
||||||
BookFragment.class,
|
BookFragment.class,
|
||||||
ExpListNavDrawerFragment.class
|
BookChapterNavFragment.class
|
||||||
},
|
},
|
||||||
includes = VerseLookupModules.class
|
includes = VerseLookupModules.class
|
||||||
)
|
)
|
||||||
|
@ -22,7 +22,7 @@ import javax.inject.Named;
|
|||||||
* and trying to getActivity() as BibleViewer yielded TypeCastException
|
* and trying to getActivity() as BibleViewer yielded TypeCastException
|
||||||
* TODO: Extend BaseExpNavigationDrawerFragment?
|
* TODO: Extend BaseExpNavigationDrawerFragment?
|
||||||
*/
|
*/
|
||||||
public class ExpListNavDrawerFragment extends NavDrawerFragment {
|
public class BookChapterNavFragment extends NavDrawerFragment {
|
||||||
|
|
||||||
@Inject @Named("MainBook")
|
@Inject @Named("MainBook")
|
||||||
Book mainBook;
|
Book mainBook;
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
<fragment
|
<fragment
|
||||||
android:id="@+id/navigation_drawer"
|
android:id="@+id/navigation_drawer"
|
||||||
android:name="org.bspeice.minimalbible.activity.viewer.ExpListNavDrawerFragment"
|
android:name="org.bspeice.minimalbible.activity.viewer.BookChapterNavFragment"
|
||||||
android:layout_width="@dimen/navigation_drawer_width"
|
android:layout_width="@dimen/navigation_drawer_width"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_gravity="start"
|
android:layout_gravity="start"
|
||||||
|
@ -7,6 +7,6 @@
|
|||||||
android:choiceMode="singleChoice"
|
android:choiceMode="singleChoice"
|
||||||
android:divider="@android:color/transparent"
|
android:divider="@android:color/transparent"
|
||||||
android:dividerHeight="0dp"
|
android:dividerHeight="0dp"
|
||||||
tools:context="org.bspeice.minimalbible.activity.viewer.ExpListNavDrawerFragment">
|
tools:context="org.bspeice.minimalbible.activity.viewer.BookChapterNavFragment">
|
||||||
|
|
||||||
</ExpandableListView>
|
</ExpandableListView>
|
Loading…
Reference in New Issue
Block a user