rename helper classes
This commit is contained in:
parent
8b791fbab4
commit
6d9e385b73
|
@ -5,7 +5,7 @@ import de.danoeh.antennapod.core.preferences.UserPreferences;
|
||||||
/**
|
/**
|
||||||
* Implements functions from PreferenceController that are flavor dependent.
|
* Implements functions from PreferenceController that are flavor dependent.
|
||||||
*/
|
*/
|
||||||
public class PreferenceControllerHelper {
|
public class PreferenceControllerFlavorHelper {
|
||||||
|
|
||||||
static void setupFlavoredUI(PreferenceController.PreferenceUI ui) {
|
static void setupFlavoredUI(PreferenceController.PreferenceUI ui) {
|
||||||
ui.findPreference(UserPreferences.PREF_CAST_ENABLED).setEnabled(false);
|
ui.findPreference(UserPreferences.PREF_CAST_ENABLED).setEnabled(false);
|
|
@ -410,7 +410,7 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc
|
||||||
ui.getActivity().startActivity(Intent.createChooser(emailIntent, intentTitle));
|
ui.getActivity().startActivity(Intent.createChooser(emailIntent, intentTitle));
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
PreferenceControllerHelper.setupFlavoredUI(ui);
|
PreferenceControllerFlavorHelper.setupFlavoredUI(ui);
|
||||||
buildEpisodeCleanupPreference();
|
buildEpisodeCleanupPreference();
|
||||||
buildSmartMarkAsPlayedPreference();
|
buildSmartMarkAsPlayedPreference();
|
||||||
buildAutodownloadSelectedNetworsPreference();
|
buildAutodownloadSelectedNetworsPreference();
|
||||||
|
|
|
@ -8,7 +8,7 @@ import de.danoeh.antennapod.core.preferences.UserPreferences;
|
||||||
/**
|
/**
|
||||||
* Implements functions from PreferenceController that are flavor dependent.
|
* Implements functions from PreferenceController that are flavor dependent.
|
||||||
*/
|
*/
|
||||||
public class PreferenceControllerHelper {
|
public class PreferenceControllerFlavorHelper {
|
||||||
|
|
||||||
static void setupFlavoredUI(PreferenceController.PreferenceUI ui) {
|
static void setupFlavoredUI(PreferenceController.PreferenceUI ui) {
|
||||||
//checks whether Google Play Services is installed on the device (condition necessary for Cast support)
|
//checks whether Google Play Services is installed on the device (condition necessary for Cast support)
|
|
@ -3,7 +3,7 @@ package de.danoeh.antennapod.core.feed;
|
||||||
/**
|
/**
|
||||||
* Implements methods for FeedMedia that are flavor dependent.
|
* Implements methods for FeedMedia that are flavor dependent.
|
||||||
*/
|
*/
|
||||||
public class FeedMediaHelper {
|
public class FeedMediaFlavorHelper {
|
||||||
static boolean instanceOfRemoteMedia(Object o) {
|
static boolean instanceOfRemoteMedia(Object o) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
|
@ -559,7 +559,7 @@ public class FeedMedia extends FeedFile implements Playable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (FeedMediaHelper.instanceOfRemoteMedia(o)) {
|
if (FeedMediaFlavorHelper.instanceOfRemoteMedia(o)) {
|
||||||
return o.equals(this);
|
return o.equals(this);
|
||||||
}
|
}
|
||||||
return super.equals(o);
|
return super.equals(o);
|
||||||
|
|
|
@ -5,7 +5,7 @@ import de.danoeh.antennapod.core.cast.RemoteMedia;
|
||||||
/**
|
/**
|
||||||
* Implements methods for FeedMedia that are flavor dependent.
|
* Implements methods for FeedMedia that are flavor dependent.
|
||||||
*/
|
*/
|
||||||
public class FeedMediaHelper {
|
public class FeedMediaFlavorHelper {
|
||||||
static boolean instanceOfRemoteMedia(Object o) {
|
static boolean instanceOfRemoteMedia(Object o) {
|
||||||
return o instanceof RemoteMedia;
|
return o instanceof RemoteMedia;
|
||||||
}
|
}
|
Loading…
Reference in New Issue