More live updates progress.
This commit is contained in:
parent
74182b2974
commit
8f516bddce
3 changed files with 4 additions and 3 deletions
|
@ -15,6 +15,7 @@ public class LiveUpdatesActivity extends AbstractDownloadActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
getMyApplication().applyTheme(this);
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_livie_updates);
|
setContentView(R.layout.activity_livie_updates);
|
||||||
|
|
||||||
|
|
|
@ -316,9 +316,9 @@ public class LiveUpdatesFragment extends Fragment {
|
||||||
final UpdateFrequency frequency = UpdateFrequency.values()[frequencyId];
|
final UpdateFrequency frequency = UpdateFrequency.values()[frequencyId];
|
||||||
subheaderTextView.setText(frequency.toString());
|
subheaderTextView.setText(frequency.toString());
|
||||||
subheaderTextView.setTextColor(fragment.getActivity().getResources()
|
subheaderTextView.setTextColor(fragment.getActivity().getResources()
|
||||||
.getColor(R.color.dashboard_blue));
|
.getColor(R.color.osmand_orange));
|
||||||
icon.setImageDrawable(context.getIconsCache().getContentIcon(R.drawable.ic_map));
|
icon.setImageDrawable(context.getIconsCache().getContentIcon(R.drawable.ic_map));
|
||||||
icon.setImageDrawable(context.getIconsCache().getIcon(R.drawable.ic_map, R.color.dashboard_blue));
|
icon.setImageDrawable(context.getIconsCache().getIcon(R.drawable.ic_map, R.color.osmand_orange));
|
||||||
options.setImageResource(R.drawable.ic_overflow_menu_white);
|
options.setImageResource(R.drawable.ic_overflow_menu_white);
|
||||||
} else {
|
} else {
|
||||||
String size;
|
String size;
|
||||||
|
|
|
@ -69,7 +69,7 @@ public class LiveUpdatesSettingsDialogFragment extends DialogFragment {
|
||||||
preferenceUpdateFrequency(localIndexInfo, getSettings());
|
preferenceUpdateFrequency(localIndexInfo, getSettings());
|
||||||
final OsmandSettings.CommonPreference<Integer> timeOfDayPreference =
|
final OsmandSettings.CommonPreference<Integer> timeOfDayPreference =
|
||||||
preferenceTimeOfDayToUpdate(localIndexInfo, getSettings());
|
preferenceTimeOfDayToUpdate(localIndexInfo, getSettings());
|
||||||
liveUpdatesSwitch.setChecked(liveUpdatePreference.get());
|
liveUpdatesSwitch.setChecked(true);
|
||||||
downloadOverWiFiSwitch.setChecked(downloadViaWiFiPreference.get());
|
downloadOverWiFiSwitch.setChecked(downloadViaWiFiPreference.get());
|
||||||
|
|
||||||
builder.setView(view)
|
builder.setView(view)
|
||||||
|
|
Loading…
Reference in a new issue