mirror of
https://github.com/MinimalBible/MinimalBible-Legacy
synced 2024-11-13 19:48:38 -05:00
Refactor the MainActivity to BibleViewer.
Dumb naming mistake on my part.
This commit is contained in:
parent
7eab6bbbdc
commit
3d76bb9e18
@ -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" />
|
||||
|
@ -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
|
@ -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));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user