mirror of
https://github.com/MinimalBible/MinimalBible-Legacy
synced 2024-12-22 14:48:25 -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:label="@string/app_name"
|
||||||
android:theme="@style/AppTheme" >
|
android:theme="@style/AppTheme" >
|
||||||
<activity
|
<activity
|
||||||
android:name="org.bspeice.minimalbible.MainActivity"
|
android:name="org.bspeice.minimalbible.BibleViewer"
|
||||||
android:label="@string/app_name" >
|
android:label="@string/app_name" >
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
android:id="@+id/drawer_layout"
|
android:id="@+id/drawer_layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="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
|
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.ArrayAdapter;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
public class MainActivity extends ActionBarActivity implements
|
public class BibleViewer extends ActionBarActivity implements
|
||||||
NavigationDrawerFragment.NavigationDrawerCallbacks {
|
NavigationDrawerFragment.NavigationDrawerCallbacks {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -36,7 +36,7 @@ public class MainActivity extends ActionBarActivity implements
|
|||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_main);
|
setContentView(R.layout.activity_bible_viewer);
|
||||||
|
|
||||||
mNavigationDrawerFragment = (NavigationDrawerFragment) getSupportFragmentManager()
|
mNavigationDrawerFragment = (NavigationDrawerFragment) getSupportFragmentManager()
|
||||||
.findFragmentById(R.id.navigation_drawer);
|
.findFragmentById(R.id.navigation_drawer);
|
||||||
@ -142,7 +142,7 @@ public class MainActivity extends ActionBarActivity implements
|
|||||||
@Override
|
@Override
|
||||||
public void onAttach(Activity activity) {
|
public void onAttach(Activity activity) {
|
||||||
super.onAttach(activity);
|
super.onAttach(activity);
|
||||||
((MainActivity) activity).onSectionAttached(getArguments().getInt(
|
((BibleViewer) activity).onSectionAttached(getArguments().getInt(
|
||||||
ARG_SECTION_NUMBER));
|
ARG_SECTION_NUMBER));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user