diff --git a/OsmAnd/res/layout/activity_livie_updates.xml b/OsmAnd/res/layout/activity_livie_updates.xml
index 2126b7c031..a728c4327c 100644
--- a/OsmAnd/res/layout/activity_livie_updates.xml
+++ b/OsmAnd/res/layout/activity_livie_updates.xml
@@ -22,7 +22,6 @@
+ android:layout_height="match_parent"/>
diff --git a/OsmAnd/res/layout/dialog_live_updates_item_settings.xml b/OsmAnd/res/layout/dialog_live_updates_item_settings.xml
new file mode 100644
index 0000000000..ab5aba7fa7
--- /dev/null
+++ b/OsmAnd/res/layout/dialog_live_updates_item_settings.xml
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OsmAnd/res/layout/fragment_live_updates.xml b/OsmAnd/res/layout/fragment_live_updates.xml
index 36bbc04b70..3a254030a0 100644
--- a/OsmAnd/res/layout/fragment_live_updates.xml
+++ b/OsmAnd/res/layout/fragment_live_updates.xml
@@ -1,12 +1,7 @@
-
-
-
-
+
diff --git a/OsmAnd/res/layout/live_updates_header.xml b/OsmAnd/res/layout/live_updates_header.xml
index f986ed8310..aac6f46050 100644
--- a/OsmAnd/res/layout/live_updates_header.xml
+++ b/OsmAnd/res/layout/live_updates_header.xml
@@ -1,8 +1,11 @@
-
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/OsmAnd/src/net/osmand/plus/LiveUpdates/LiveUpdatesFragment.java b/OsmAnd/src/net/osmand/plus/LiveUpdates/LiveUpdatesFragment.java
index bfd3e2d9d4..fd0d328788 100644
--- a/OsmAnd/src/net/osmand/plus/LiveUpdates/LiveUpdatesFragment.java
+++ b/OsmAnd/src/net/osmand/plus/LiveUpdates/LiveUpdatesFragment.java
@@ -1,22 +1,34 @@
package net.osmand.plus.liveupdates;
-import android.content.Context;
+import android.app.Dialog;
+import android.os.AsyncTask;
import android.os.Bundle;
+import android.support.annotation.NonNull;
+import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
+import android.support.v4.app.FragmentManager;
+import android.support.v7.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
+import android.widget.ImageButton;
+import android.widget.ImageView;
import android.widget.ListView;
+import android.widget.TextView;
+import net.osmand.plus.OsmandApplication;
import net.osmand.plus.R;
+import net.osmand.plus.activities.ActionBarProgressActivity;
+import net.osmand.plus.activities.LocalIndexHelper;
+import net.osmand.plus.activities.LocalIndexInfo;
+import net.osmand.plus.activities.OsmandActionBarActivity;
+import net.osmand.plus.download.ui.AbstractLoadLocalIndexTask;
+
+import java.util.Comparator;
+import java.util.List;
-/**
- * A simple {@link Fragment} subclass.
- * Use the {@link LiveUpdatesFragment#newInstance} factory method to
- * create an instance of this fragment.
- */
public class LiveUpdatesFragment extends Fragment {
public static final String TITILE = "Live Updates";
@@ -32,13 +44,126 @@ public class LiveUpdatesFragment extends Fragment {
ListView listView = (ListView) view.findViewById(android.R.id.list);
View header = inflater.inflate(R.layout.live_updates_header, listView, false);
listView.addHeaderView(header);
+ LiveUpdatesAdapter adapter = new LiveUpdatesAdapter(this);
+ listView.setAdapter(adapter);
+ new LoadLocalIndexTask(adapter, (ActionBarProgressActivity) getActivity()).execute();
return view;
}
- private static class LiveUpdatesAdapter extends ArrayAdapter