Refactor the MainActivity to BibleViewer.

Dumb naming mistake on my part.
This commit is contained in:
Bradlee Speice 2014-04-13 16:32:35 -04:00
parent 7eab6bbbdc
commit 3d76bb9e18
3 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="org.bspeice.minimalbible.MainActivity"
android:name="org.bspeice.minimalbible.BibleViewer"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@ -4,7 +4,7 @@
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="org.bspeice.minimalbible.MainActivity" >
tools:context="org.bspeice.minimalbible.BibleViewer" >
<!--
As the main content view, the view below consumes the entire

View File

@ -18,7 +18,7 @@ import android.support.v4.widget.DrawerLayout;
import android.widget.ArrayAdapter;
import android.widget.TextView;
public class MainActivity extends ActionBarActivity implements
public class BibleViewer extends ActionBarActivity implements
NavigationDrawerFragment.NavigationDrawerCallbacks {
/**
@ -36,7 +36,7 @@ public class MainActivity extends ActionBarActivity implements
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
setContentView(R.layout.activity_bible_viewer);
mNavigationDrawerFragment = (NavigationDrawerFragment) getSupportFragmentManager()
.findFragmentById(R.id.navigation_drawer);
@ -142,7 +142,7 @@ public class MainActivity extends ActionBarActivity implements
@Override
public void onAttach(Activity activity) {
super.onAttach(activity);
((MainActivity) activity).onSectionAttached(getArguments().getInt(
((BibleViewer) activity).onSectionAttached(getArguments().getInt(
ARG_SECTION_NUMBER));
}
}