<NME> EditOfflineLogListener.java
<BEF> ADDFILE
<MSG> fix #4679: show stored log as first in logbook
<DFF> @@ -0,0 +1,25 @@
+package cgeo.geocaching.ui.logs;
+
+import cgeo.geocaching.CacheDetailActivity;
+import cgeo.geocaching.Geocache;
+
+import android.view.View;
+import android.view.View.OnClickListener;
+
+class EditOfflineLogListener implements OnClickListener {
+
+    private final Geocache cache;
+    private final CacheDetailActivity activity;
+
+    public EditOfflineLogListener(final Geocache cache, final CacheDetailActivity activity) {
+        this.cache = cache;
+        this.activity = activity;
+    }
+
+    @Override
+    public void onClick(final View v) {
+        activity.setNeedsRefresh();
+        cache.logVisit(activity);
+    }
+
+}

fix #4679: show stored log as first in logbook