Permalink
Browse files

history a bit more responsive

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

0 comments on commit df242c3

Please sign in to comment.