Revert rename of setupFlavoredUI
This commit is contained in:
parent
0b96588b10
commit
b1622fa6be
|
@ -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:
|
||||||
|
|
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue