Skip to content
This repository
Browse code

history a bit more responsive

  • Loading branch information...
commit df242c3eaaed1979323edabdfbe420532907e832 1 parent 4add2af
Will authored October 05, 2012
4  AndroidManifest.xml
... ...
@@ -1,8 +1,8 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2 2
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 3
     package="com.android2.calculator3"
4  
-    android:versionCode="22"
5  
-    android:versionName="1.8"
  4
+    android:versionCode="23"
  5
+    android:versionName="1.9"
6 6
     android:installLocation="auto">
7 7
 
8 8
     <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="16"/>
1  src/com/android2/calculator3/Calculator.java
@@ -155,7 +155,6 @@ public void onSlide(Direction d) {
155 155
         });
156 156
         mPulldown.setBackgroundResource(R.color.background);
157 157
         mHistoryView = (LinearLayout) mPulldown.findViewById(R.id.history);
158  
-        setUpHistory();
159 158
 
160 159
         mLogic = new Logic(this, mHistory, mDisplay);
161 160
         mLogic.setListener(this);
2  src/com/android2/calculator3/Slider.java
@@ -92,6 +92,8 @@ public boolean onTouch(View v, MotionEvent event) {
92 92
         switch (event.getAction()) {
93 93
         case MotionEvent.ACTION_DOWN:
94 94
             offset = (int) event.getY();
  95
+            if(slideListener != null && isSliderOpen()) slideListener.onSlide(Direction.DOWN);
  96
+            else if(slideListener != null && !isSliderOpen()) slideListener.onSlide(Direction.UP);
95 97
             break;
96 98
         case MotionEvent.ACTION_UP:
97 99
             if(sliderOpen) {

0 notes on commit df242c3

Please sign in to comment.
Something went wrong with that request. Please try again.