DownloadActivity can now show the settings

This commit is contained in:
Bradlee Speice 2014-12-01 21:00:54 -05:00
parent 71f88f0755
commit ddcaca4416

View File

@ -1,5 +1,6 @@
package org.bspeice.minimalbible.activity.downloader; package org.bspeice.minimalbible.activity.downloader;
import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentManager;
import android.support.v4.widget.DrawerLayout; import android.support.v4.widget.DrawerLayout;
@ -14,6 +15,7 @@ import org.bspeice.minimalbible.OGHolder;
import org.bspeice.minimalbible.R; import org.bspeice.minimalbible.R;
import org.bspeice.minimalbible.activity.BaseActivity; import org.bspeice.minimalbible.activity.BaseActivity;
import org.bspeice.minimalbible.activity.navigation.NavDrawerFragment; import org.bspeice.minimalbible.activity.navigation.NavDrawerFragment;
import org.bspeice.minimalbible.activity.settings.MinimalBibleSettings;
import org.crosswire.jsword.book.BookCategory; import org.crosswire.jsword.book.BookCategory;
import java.util.List; import java.util.List;
@ -136,7 +138,8 @@ public class DownloadActivity extends BaseActivity implements
// as you specify a parent activity in AndroidManifest.xml. // as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId(); int id = item.getItemId();
if (id == R.id.action_settings) { if (id == R.id.action_settings) {
return true; Intent i = new Intent(this, MinimalBibleSettings.class);
startActivityForResult(i, 0);
} }
return super.onOptionsItemSelected(item); return super.onOptionsItemSelected(item);
} }