Skip to content

Commit

Permalink
Fix reflection warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-yakushev committed Nov 2, 2014
1 parent 22c98ee commit a0a97ba
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/clojure/neko/activity.clj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
(and (bound? #'*activity*)
(activity? *activity*)))

(defn get-decor-view
(defn ^View get-decor-view
"Returns the root view of the given activity."
[^Activity activity]
(.. activity getWindow getDecorView))
Expand All @@ -67,8 +67,8 @@
(let [dv (get-decor-view activity)]
(.setTag dv (java.util.HashMap.))
(.setContentView activity
(neko.ui/make-ui-element activity view
{:id-holder dv}))))))
^View (neko.ui/make-ui-element activity view
{:id-holder dv}))))))

(defn request-window-features!
"Requests the given features for the activity. The features should be
Expand Down Expand Up @@ -182,7 +182,9 @@ Use (*a) to get the current activity."))
~(when (and (not (:neko.init/release-build *compiler-options*))
def)
`(def ~(vary-meta def assoc :tag name) ~'this))
(.put all-activities ~(or key *ns*) ~'this)
(.put all-activities ~*ns* ~'this)
~(when key
`(.put all-activities ~key ~'this))
(neko.init/init (.getApplicationContext ~'this))
(~on-create ~'this ~'savedInstanceState)))
~(when on-create-options-menu
Expand Down

0 comments on commit a0a97ba

Please sign in to comment.