Rename the ExpListNavDrawerFragment

robolectric-error
Bradlee Speice 2014-11-12 22:21:32 -05:00
parent 18c9df404e
commit 0e7680ca9e
5 changed files with 6 additions and 6 deletions

View File

@ -37,7 +37,7 @@ public class BibleViewer extends BaseActivity implements
* Fragment managing the behaviors, interactions and presentation of the
* navigation drawer.
*/
private ExpListNavDrawerFragment mNavigationDrawerFragment;
private BookChapterNavFragment mNavigationDrawerFragment;
/**
* Used to store the last screen title. For use in
* {@link #restoreActionBar()}.
@ -93,7 +93,7 @@ public class BibleViewer extends BaseActivity implements
.commit();
setContentView(R.layout.activity_bible_viewer);
mNavigationDrawerFragment = (ExpListNavDrawerFragment) getSupportFragmentManager()
mNavigationDrawerFragment = (BookChapterNavFragment) getSupportFragmentManager()
.findFragmentById(R.id.navigation_drawer);
mTitle = getTitle();

View File

@ -25,7 +25,7 @@ import rx.functions.Func1;
injects = {
BibleViewer.class,
BookFragment.class,
ExpListNavDrawerFragment.class
BookChapterNavFragment.class
},
includes = VerseLookupModules.class
)

View File

@ -22,7 +22,7 @@ import javax.inject.Named;
* and trying to getActivity() as BibleViewer yielded TypeCastException
* TODO: Extend BaseExpNavigationDrawerFragment?
*/
public class ExpListNavDrawerFragment extends NavDrawerFragment {
public class BookChapterNavFragment extends NavDrawerFragment {
@Inject @Named("MainBook")
Book mainBook;

View File

@ -32,7 +32,7 @@
<fragment
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_height="match_parent"
android:layout_gravity="start"

View File

@ -7,6 +7,6 @@
android:choiceMode="singleChoice"
android:divider="@android:color/transparent"
android:dividerHeight="0dp"
tools:context="org.bspeice.minimalbible.activity.viewer.ExpListNavDrawerFragment">
tools:context="org.bspeice.minimalbible.activity.viewer.BookChapterNavFragment">
</ExpandableListView>