{"push_id":1144173310,"size":1,"distinct_size":1,"ref":"refs/heads/mod","head":"65028f0b743da783a6340eca4a2bd1ed9f3e8f1f","before":"cb5eb9d771b00c4daffba550d48a74ef1b4c1d28","commits":[{"sha":"65028f0b743da783a6340eca4a2bd1ed9f3e8f1f","author":{"name":"satchit8","email":"57ef4523211c6b2ab6e2848bbb9377f2f259d444@tutanota.com"},"message":"Use alert-dialog-builder and showDialog\n\nTips\r\n\r\n0. Ensure various Clojure on Android development pieces are set-up\r\n   and briefly scan the References section below.\r\n\r\n1. Build and run the app to see what it does.\r\n\r\n2. In main.clj, note the following:\r\n\r\n           [:button {:on-click\r\n                     (fn [_]\r\n                       (.showDialog this 0))\r\n  ...\r\n\r\n  ;; XXX: but deprecated?\r\n  (onCreateDialog [this id _]\r\n    (-> (alert-dialog-builder this\r\n          {:cancelable true\r\n           :message \"Decide?\"\r\n           :negative-text \"Cancel\"\r\n           :negative-callback (fn [dialog res]\r\n                                (toast \"No!\" :short))\r\n           :positive-text \"OK\"\r\n           :positive-callback (fn [dialog res]\r\n                                (toast \"Yes!\" :short))})\r\n\r\nNote that onCreateDialog appears to be deprecated according to Android\r\nSDK docs.\r\n\r\nReferences\r\n\r\nhttp://www.lambdacat.com/clojure-on-android-overview/\r\nhttp://www.lambdacat.com/clojure-android-workflow-setup/\r\nhttp://www.lambdacat.com/clojure-on-android-workflow-setup-ii/\r\nhttps://github.com/clojure-android/lein-droid/wiki/Tutorial\r\nhttps://github.com/clojure-android/neko/wiki\r\nhttps://github.com/clojure-android/neko/wiki/Namespaces#user-content-nekodialogalert\r\nhttps://developer.android.com/reference/android/app/Activity.html#onCreateDialog%28int,%20android.os.Bundle%29\r\nhttps://developer.android.com/reference/android/app/Activity.html#showDialog%28int,%20android.os.Bundle%29","distinct":true,"url":"https://api.github.com/repos/satchit8/coa-examples/commits/65028f0b743da783a6340eca4a2bd1ed9f3e8f1f"}]}
{"actor":{"display_login":"satchit8"}}