Revert rename of setupFlavoredUI

This commit is contained in:
ByteHamster 2018-04-11 01:09:43 +02:00
parent 0b96588b10
commit b1622fa6be
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc
break; break;
case R.xml.preferences_playback: case R.xml.preferences_playback:
setupPlaybackScreen(); setupPlaybackScreen();
PreferenceControllerFlavorHelper.setupCastUI(ui); PreferenceControllerFlavorHelper.setupFlavoredUI(ui);
buildSmartMarkAsPlayedPreference(); buildSmartMarkAsPlayedPreference();
break; break;
case R.xml.preferences_services: case R.xml.preferences_services:

View File

@ -10,7 +10,7 @@ import de.danoeh.antennapod.core.preferences.UserPreferences;
*/ */
public class PreferenceControllerFlavorHelper { public class PreferenceControllerFlavorHelper {
static void setupCastUI(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)
ui.findPreference(UserPreferences.PREF_CAST_ENABLED).setOnPreferenceChangeListener((preference, o) -> { ui.findPreference(UserPreferences.PREF_CAST_ENABLED).setOnPreferenceChangeListener((preference, o) -> {
if (o instanceof Boolean && ((Boolean) o)) { if (o instanceof Boolean && ((Boolean) o)) {