diff --git a/OsmAnd/no_translate.xml b/OsmAnd/no_translate.xml index 7b96dcb66c..51932946ca 100644 --- a/OsmAnd/no_translate.xml +++ b/OsmAnd/no_translate.xml @@ -25,7 +25,4 @@ name Tag Value - Live updates on - Live updates off - "Map update date: %s" diff --git a/OsmAnd/res/layout/dialog_live_updates_item_settings.xml b/OsmAnd/res/layout/dialog_live_updates_item_settings.xml index facafd82b2..05b4a9a932 100644 --- a/OsmAnd/res/layout/dialog_live_updates_item_settings.xml +++ b/OsmAnd/res/layout/dialog_live_updates_item_settings.xml @@ -3,8 +3,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="vertical" - android:theme="@style/OsmandLightTheme"> + android:orientation="vertical"> + tools:text="@string/last_map_change"/> + tools:text="@string/last_update"/> - - Update now App have no permission to use SD card Last update: %s - "Update: %s" Update time "Updates: %s" + "Last map change: %s" \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/liveupdates/LiveUpdatesSettingsDialogFragment.java b/OsmAnd/src/net/osmand/plus/liveupdates/LiveUpdatesSettingsDialogFragment.java index c191710f30..81c185d457 100644 --- a/OsmAnd/src/net/osmand/plus/liveupdates/LiveUpdatesSettingsDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/liveupdates/LiveUpdatesSettingsDialogFragment.java @@ -62,7 +62,7 @@ public class LiveUpdatesSettingsDialogFragment extends DialogFragment { View view = LayoutInflater.from(getActivity()) .inflate(R.layout.dialog_live_updates_item_settings, null); final TextView regionNameTextView = (TextView) view.findViewById(R.id.regionNameTextView); - final TextView lastCheckTextView = (TextView) view.findViewById(R.id.lastCheckTextView); + final TextView lastMapChangeTextView = (TextView) view.findViewById(R.id.lastMapChangeTextView); final TextView lastUpdateTextView = (TextView) view.findViewById(R.id.lastUpdateTextView); final SwitchCompat liveUpdatesSwitch = (SwitchCompat) view.findViewById(R.id.liveUpdatesSwitch); final CheckBox downloadOverWiFiCheckBox = (CheckBox) view.findViewById(R.id.downloadOverWiFiSwitch); @@ -80,8 +80,8 @@ public class LiveUpdatesSettingsDialogFragment extends DialogFragment { String lastUpdateDate = formatDateTime(getActivity(), timestamp); final long mapTimestamp = changesManager.getMapTimestamp(fileNameWithoutExtension); String lastCheckDate = formatDateTime(getActivity(), mapTimestamp); - lastCheckTextView.setText(getString(R.string.map_update_date, lastCheckDate)); - lastUpdateTextView.setText(getString(R.string.update_date_pattern, lastUpdateDate)); + lastMapChangeTextView.setText(getString(R.string.last_map_change, lastCheckDate)); + lastUpdateTextView.setText(getString(R.string.last_update, lastUpdateDate)); final OsmandSettings.CommonPreference liveUpdatePreference = preferenceForLocalIndex(localIndexInfo, getSettings()); final OsmandSettings.CommonPreference downloadViaWiFiPreference =