Skip to content

Commit

Permalink
Revert "added preference fragment at end of main activity"
Browse files Browse the repository at this point in the history
This reverts commit b6f0fa9.
  • Loading branch information
thasmin committed Jul 2, 2012
1 parent b6f0fa9 commit 1c5e64b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 282 deletions.
25 changes: 0 additions & 25 deletions res/layout/preference_list.xml

This file was deleted.

12 changes: 2 additions & 10 deletions src/com/axelby/podax/ui/MainActivity.java
Expand Up @@ -33,8 +33,7 @@ public class MainActivity extends SherlockFragmentActivity {
public static final int TAB_SUBSCRIPTIONS = 2; public static final int TAB_SUBSCRIPTIONS = 2;
public static final int TAB_DOWNLOADS = 3; public static final int TAB_DOWNLOADS = 3;
public static final int TAB_ABOUT = 4; public static final int TAB_ABOUT = 4;
public static final int TAB_PREFERENCES = 5; private static final int TAB_COUNT = 5;
private static final int TAB_COUNT = 6;


protected int _focusedPage; protected int _focusedPage;


Expand Down Expand Up @@ -151,8 +150,7 @@ public TabsAdapter(FragmentManager fm) {
resources.getString(R.string.queue), resources.getString(R.string.queue),
resources.getString(R.string.subscriptions), resources.getString(R.string.subscriptions),
resources.getString(R.string.downloads), resources.getString(R.string.downloads),
resources.getString(R.string.about), resources.getString(R.string.about)
resources.getString(R.string.preferences)
}; };
} }


Expand All @@ -169,12 +167,6 @@ public Fragment getItem(int item) {
return new ActiveDownloadListFragment(); return new ActiveDownloadListFragment();
case TAB_ABOUT: case TAB_ABOUT:
return new AboutFragment(); return new AboutFragment();
case TAB_PREFERENCES:
Fragment preferenceFragment = new PreferenceFragment();
Bundle args = new Bundle();
args.putInt("xml", R.xml.preferences);
preferenceFragment.setArguments(args);
return preferenceFragment;
} }
throw new IllegalArgumentException(); throw new IllegalArgumentException();
} }
Expand Down
247 changes: 0 additions & 247 deletions src/com/axelby/podax/ui/PreferenceFragment.java

This file was deleted.

0 comments on commit 1c5e64b

Please sign in to comment.