mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-06 05:23:30 +01:00
Show gpodder information
This commit is contained in:
parent
4bfb0022c3
commit
a4733e2643
@ -442,6 +442,14 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc
|
||||
ui.findPreference(PreferenceController.PREF_GPODNET_SETLOGIN_INFORMATION).setEnabled(loggedIn);
|
||||
ui.findPreference(PreferenceController.PREF_GPODNET_SYNC).setEnabled(loggedIn);
|
||||
ui.findPreference(PreferenceController.PREF_GPODNET_LOGOUT).setEnabled(loggedIn);
|
||||
if(loggedIn) {
|
||||
String format = ui.getActivity().getString(R.string.pref_gpodnet_login_status);
|
||||
String summary = String.format(format, GpodnetPreferences.getUsername(),
|
||||
GpodnetPreferences.getDeviceID());
|
||||
ui.findPreference(PreferenceController.PREF_GPODNET_LOGOUT).setSummary(Html.fromHtml(summary));
|
||||
} else {
|
||||
ui.findPreference(PreferenceController.PREF_GPODNET_LOGOUT).setSummary(null);
|
||||
}
|
||||
ui.findPreference(PreferenceController.PREF_GPODNET_HOSTNAME).setSummary(GpodnetPreferences.getHostname());
|
||||
}
|
||||
|
||||
|
@ -364,6 +364,7 @@
|
||||
<string name="pref_gpodnet_sync_title">Sync now</string>
|
||||
<string name="pref_gpodnet_sync_sum">Sync subscriptions and episode states with gpodder.net</string>
|
||||
<string name="pref_gpodnet_sync_started">Sync started</string>
|
||||
<string name="pref_gpodnet_login_status"><![CDATA[Logged in as <i>%1$s</i> with device <i>%2$s</i>]]></string>
|
||||
<string name="pref_playback_speed_title">Playback Speeds</string>
|
||||
<string name="pref_playback_speed_sum">Customize the speeds available for variable speed audio playback</string>
|
||||
<string name="pref_fast_forward">Fast forward time</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user