Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a settings in the navigation drawer #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions app/src/main/java/com/github/mobile/ui/MainActivity.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.mobile.ui;

import static com.github.mobile.ui.NavigationDrawerObject.TYPE_SEPERATOR;
import android.app.SearchManager;
import android.content.Context;
import android.os.Bundle;
Expand Down Expand Up @@ -29,10 +28,12 @@
import com.google.inject.Inject;
import com.google.inject.Provider;

import org.eclipse.egit.github.core.User;

import java.util.Collections;
import java.util.List;

import org.eclipse.egit.github.core.User;
import static com.github.mobile.ui.NavigationDrawerObject.TYPE_SEPERATOR;

public class MainActivity extends BaseActivity implements NavigationDrawerFragment.NavigationDrawerCallbacks,
LoaderManager.LoaderCallbacks<List<User>> {
Expand Down Expand Up @@ -161,6 +162,8 @@ public void onNavigationDrawerItemSelected(int position) {
case 4:
fragment = new FilterListFragment();
break;
case 5:
fragment = new SettingsFragment();
default:
fragment = new HomePagerFragment();
args.putSerializable("org", orgs.get(position - 6));
Expand Down
22 changes: 22 additions & 0 deletions app/src/main/java/com/github/mobile/ui/SettingsFragment.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.github.mobile.ui;

import android.os.Bundle;

/**
* Created by c4q-marbella on 6/19/15.
*/
public class SettingsFragment extends android.support.v4.app.Fragment {


@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);



}




}