Run live updates right after Live updates enable for item.
This commit is contained in:
parent
b40e45b627
commit
39c3ef08b3
1 changed files with 6 additions and 1 deletions
|
@ -125,7 +125,12 @@ public class LiveUpdatesSettingsDialogFragment extends DialogFragment {
|
|||
.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
liveUpdatePreference.set(liveUpdatesSwitch.isChecked());
|
||||
if (liveUpdatePreference.get() != liveUpdatesSwitch.isChecked()) {
|
||||
liveUpdatePreference.set(liveUpdatesSwitch.isChecked());
|
||||
if (liveUpdatesSwitch.isChecked()) {
|
||||
runLiveUpdate(localIndexInfo);
|
||||
}
|
||||
}
|
||||
downloadViaWiFiPreference.set(downloadOverWiFiCheckBox.isChecked());
|
||||
|
||||
final int updateFrequencyInt = updateFrequencySpinner.getSelectedItemPosition();
|
||||
|
|
Loading…
Reference in a new issue