[Android] Remove implementation of OnPreferenceAttachedListener from PreferenceActivity. Not necessary.

This commit is contained in:
Lioncash 2013-10-13 22:48:31 -04:00
parent aa36ba9fad
commit 39280b5535
2 changed files with 1 additions and 15 deletions

View File

@ -4,7 +4,6 @@ import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.preference.PreferenceScreen;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
@ -17,7 +16,6 @@ import android.support.v7.app.ActionBarActivity;
import org.retroarch.R;
import org.retroarch.browser.preferences.fragments.util.PreferenceListFragment;
import org.retroarch.browser.preferences.fragments.util.PreferenceListFragment.OnPreferenceAttachedListener;
import org.retroarch.browser.preferences.util.UserPreferences;
/**
@ -26,7 +24,7 @@ import org.retroarch.browser.preferences.util.UserPreferences;
* This class can be considered the central activity for the settings, as this class
* provides the backbone for the {@link ViewPager} that handles all of the fragments being used.
*/
public final class PreferenceActivity extends ActionBarActivity implements TabListener, OnPreferenceAttachedListener, OnSharedPreferenceChangeListener
public final class PreferenceActivity extends ActionBarActivity implements TabListener, OnSharedPreferenceChangeListener
{
// ViewPager for the fragments.
private ViewPager viewPager;
@ -96,12 +94,6 @@ public final class PreferenceActivity extends ActionBarActivity implements TabLi
UserPreferences.updateConfigFile(this);
}
@Override
public void onPreferenceAttached(PreferenceScreen root, int xmlId)
{
// Do nothing
}
/**
* The {@link FragmentPagerAdapter} that will back
* the view pager of this {@link PreferenceActivity}.

View File

@ -87,7 +87,6 @@ public class PreferenceListFragment extends ListFragment
lv.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
addPreferencesFromResource(xmlId);
postBindPreferences();
((OnPreferenceAttachedListener)getActivity()).onPreferenceAttached(getPreferenceScreen(), xmlId);
}
@Override
@ -293,9 +292,4 @@ public class PreferenceListFragment extends ListFragment
return mPreferenceManager.findPreference(key);
}
public interface OnPreferenceAttachedListener
{
void onPreferenceAttached(PreferenceScreen root, int xmlId);
}
}