Permalink
Browse files

updated Slider

  • Loading branch information...
1 parent 8f63c22 commit 9d51f8aef5b7611cad50926d5bb3b95fd0b975e9 @Xlythe committed Feb 4, 2013
Showing with 4 additions and 2 deletions.
  1. BIN libs/slider.jar
  2. +1 −1 res/values/styles.xml
  3. +3 −1 src/com/android2/calculator3/Calculator.java
View
Binary file not shown.
View
@@ -20,7 +20,7 @@
<dimen name="btn_clear_text_size">30sp</dimen>
<dimen name="display_text_size">40sp</dimen>
<dimen name="small_display_text_size">20sp</dimen>
- <dimen name="min_display_height">105dp</dimen>
+ <dimen name="min_display_height">70dp</dimen>
<dimen name="barHeight">25dp</dimen>
<integer name="barHeight">25</integer>
@@ -70,6 +70,7 @@
private EquationFormatter mEquationFormatter;
private boolean clingActive = false;
+ private Direction previousDirection = Direction.DOWN;
public enum Panel {
GRAPH, FUNCTION, HEX, BASIC, ADVANCED, MATRIX;
@@ -156,9 +157,10 @@ public void onCreate(Bundle state) {
mPulldown.setOnSlideListener(new OnSlideListener() {
@Override
public void onSlide(Direction d) {
- if(d.equals(Direction.UP)) {
+ if(!previousDirection.equals(d) && d.equals(Direction.UP)) {
setUpHistory();
}
+ previousDirection = d;
}
});
mPulldown.setBackgroundResource(R.color.background);

0 comments on commit 9d51f8a

Please sign in to comment.