rename AppListFragmentPagerAdapter to fix typo

AppListFragmentPageAdapter is a subclass of FragmentPagerAdapter, so it
should include the same spelling to make that clear and easy to trace,
grep for, etc.
This commit is contained in:
Hans-Christoph Steiner 2014-07-11 11:15:36 -04:00
parent 0945661c9d
commit c1e5e287b7
2 changed files with 7 additions and 6 deletions

View File

@ -44,7 +44,7 @@ import android.widget.TextView;
import org.fdroid.fdroid.compat.TabManager; import org.fdroid.fdroid.compat.TabManager;
import org.fdroid.fdroid.data.AppProvider; import org.fdroid.fdroid.data.AppProvider;
import org.fdroid.fdroid.views.AppListFragmentPageAdapter; import org.fdroid.fdroid.views.AppListFragmentPagerAdapter;
import org.fdroid.fdroid.views.LocalRepoActivity; import org.fdroid.fdroid.views.LocalRepoActivity;
import org.fdroid.fdroid.views.ManageReposActivity; import org.fdroid.fdroid.views.ManageReposActivity;
@ -276,8 +276,8 @@ public class FDroid extends ActionBarActivity {
private void createViews() { private void createViews() {
viewPager = (ViewPager)findViewById(R.id.main_pager); viewPager = (ViewPager)findViewById(R.id.main_pager);
AppListFragmentPageAdapter viewPageAdapter = new AppListFragmentPageAdapter(this); AppListFragmentPagerAdapter viewPagerAdapter = new AppListFragmentPagerAdapter(this);
viewPager.setAdapter(viewPageAdapter); viewPager.setAdapter(viewPagerAdapter);
viewPager.setOnPageChangeListener( new ViewPager.SimpleOnPageChangeListener() { viewPager.setOnPageChangeListener( new ViewPager.SimpleOnPageChangeListener() {
@Override @Override
public void onPageSelected(int position) { public void onPageSelected(int position) {

View File

@ -2,6 +2,7 @@ package org.fdroid.fdroid.views;
import android.support.v4.app.Fragment; import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentPagerAdapter; import android.support.v4.app.FragmentPagerAdapter;
import org.fdroid.fdroid.FDroid; import org.fdroid.fdroid.FDroid;
import org.fdroid.fdroid.R; import org.fdroid.fdroid.R;
import org.fdroid.fdroid.data.AppProvider; import org.fdroid.fdroid.data.AppProvider;
@ -13,11 +14,11 @@ import org.fdroid.fdroid.views.fragments.InstalledAppsFragment;
* Used by the FDroid activity in conjunction with its ViewPager to support * Used by the FDroid activity in conjunction with its ViewPager to support
* swiping of tabs for both old devices (< 3.0) and new devices. * swiping of tabs for both old devices (< 3.0) and new devices.
*/ */
public class AppListFragmentPageAdapter extends FragmentPagerAdapter { public class AppListFragmentPagerAdapter extends FragmentPagerAdapter {
private FDroid parent = null; private FDroid parent = null;
public AppListFragmentPageAdapter(FDroid parent) { public AppListFragmentPagerAdapter(FDroid parent) {
super(parent.getSupportFragmentManager()); super(parent.getSupportFragmentManager());
this.parent = parent; this.parent = parent;
} }