 
 (def listing (atom (sorted-map)))
 
-
-
 (defn sorted-map-array-to-array-task [lst]
   (mapcat identity (map (fn [sorted-map-data]
-                          (into [] (map-indexed (fn [i ele]  (apply ->Task (concat [(first sorted-map-data)] ele [i]))) (second sorted-map-data)))
-                          ) lst)))
+                          (into [] (map-indexed (fn [i ele] (apply ->Task (concat [(first sorted-map-data)] ele [i]))) (second sorted-map-data))))
+                        lst)))
 
-
-(defn make-date-adapter [activity]
+(defn make-date-adapter []
   (adapters/ref-adapter
     (fn [_]
-      [:linear-layout {:id-holder true
+      [:linear-layout {:id-holder   true
                        :orientation :vertical}
        [:text-view {:id ::date-tv}]
-       [:text-view {:id ::event-tv}]
-       ])
+       [:text-view {:id ::event-tv}]])
     (fn [_ view _ task]
       (let [date-view (find-view view ::date-tv)
             event-view (find-view view ::event-tv)]

            [clojure.string :refer [join]]
            [neko.find-view :refer [find-view]]
            [neko.threading :refer [on-ui]])
  (:import [android.widget CursorAdapter TextView]
           android.graphics.Color
           java.util.Calendar
           android.app.Activity
           android.view.View
           android.widget.LinearLayout

           [android.app DatePickerDialog DatePickerDialog$OnDateSetListener]
           [android.app TimePickerDialog TimePickerDialog$OnTimeSetListener]
           android.app.DialogFragment))

(declare add-event)
(declare date-picker)

      (TimePickerDialog. activity this 0 0 true))
    (onTimeSet [view hourOfDay minute]
      (set-elmt-text activity ::time
                     (format "%d" (+ (* hourOfDay 60) minute))))))

(defactivity com.example.gt.metime.MainActivity
             :key :main
             (onCreate [this bundle]
                       (.superOnCreate this bundle)
                       (on-ui (set-content-view! (*a) (main-layout (*a))))))