From 5ff4ff7ead38cb24279de455fa6d857f318074fe Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Thu, 30 Jun 2016 19:27:42 +0300 Subject: [PATCH 1/2] another attempt to improve animation --- src/status_im/chat/handlers/animation.cljs | 8 ++++---- src/status_im/chat/views/suggestions.cljs | 14 ++++++-------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/status_im/chat/handlers/animation.cljs b/src/status_im/chat/handlers/animation.cljs index 571297542b..c14a22b22d 100644 --- a/src/status_im/chat/handlers/animation.cljs +++ b/src/status_im/chat/handlers/animation.cljs @@ -29,10 +29,10 @@ (fn [{:keys [current-chat-id] :as db} _] (let [suggestions? (seq (get-in db [:command-suggestions current-chat-id])) current (get-in db [:animations :command-suggestions-height]) - height (if suggestions? middle-height 30) + height (if suggestions? middle-height input-height) changed? (if (and suggestions? (not (nil? current)) - (not= 30 current)) + (not= input-height current)) identity inc)] (-> db (update :animations assoc :command-suggestions-height height) @@ -44,7 +44,7 @@ type (get-in db path)] (if (= :response type) minimum-suggestion-height - 30))) + input-height))) (register-handler :animate-show-response [(after #(dispatch [:command-edit-mode]))] @@ -97,7 +97,7 @@ (let [suggestions (get-in db [:command-suggestions current-chat-id])] (if (seq suggestions) minimum-command-suggestions-height - 0.1))) + input-height))) (register-handler :fix-commands-suggestions-height (fix-height :command-suggestions-height diff --git a/src/status_im/chat/views/suggestions.cljs b/src/status_im/chat/views/suggestions.cljs index 457c441083..ca2bd8d0fe 100644 --- a/src/status_im/chat/views/suggestions.cljs +++ b/src/status_im/chat/views/suggestions.cljs @@ -115,14 +115,12 @@ on-update :reagent-render (fn [h & elements] - @changed + @to-response-height @changed (into [animated-view {:style (st/container h)}] elements))}))) (defn suggestion-container [] - (let [h (anim/create-value 0.1) - command? (subscribe [:command?])] - (when-not @command? - [container h - [header h] - [suggestions-view] - [view {:height c/input-height}]]))) + (let [h (anim/create-value c/input-height)] + [container h + [header h] + [suggestions-view] + [view {:height c/input-height}]])) From e73e9ee7b6b38ddb5a8ac1fedbdab769327c2ca1 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Thu, 30 Jun 2016 19:59:25 +0300 Subject: [PATCH 2/2] upgrade statusgo --- android/app/build.gradle | 2 +- android/app/src/main/java/com/statusim/GethService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index e7e086763c..d2e57e779b 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -133,7 +133,7 @@ dependencies { compile project(':react-native-camera') compile project(':react-native-status') compile project(':react-native-orientation') - compile(group: 'status-im', name: 'status-go', version: '0.1.0-201606231357-85abe1', ext: 'aar') + compile(group: 'status-im', name: 'status-go', version: '0.1.0-201606301634-5d7b29', ext: 'aar') compile fileTree(dir: "node_modules/realm/android/libs", include: ["*.jar"]) } diff --git a/android/app/src/main/java/com/statusim/GethService.java b/android/app/src/main/java/com/statusim/GethService.java index 1473b33909..7a11e0e739 100644 --- a/android/app/src/main/java/com/statusim/GethService.java +++ b/android/app/src/main/java/com/statusim/GethService.java @@ -79,7 +79,7 @@ public class GethService extends Service { new Thread(new Runnable() { public void run() { - Statusgo.doStartNode(dataFolder); + Statusgo.StartNode(dataFolder); } }).start(); }