Skip to content
Browse files

fix cutting

  • Loading branch information...
1 parent f88fbaf commit 3a8d1863b688635faba4f08f38d10af01997f8c7 @Xlythe committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/com/android2/calculator3/view/ScrollableDisplay.java
View
6 src/com/android2/calculator3/view/ScrollableDisplay.java
@@ -86,7 +86,7 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto
view.setLayoutParams(p);
removeViewAt(0);
addView(view);
- view.getActiveEditText().requestFocus();
+ if(view.getActiveEditText() != null) view.getActiveEditText().requestFocus();
super.onLayout(changed, left, top, right, bottom);
}
}
@@ -97,10 +97,10 @@ else if(gravityRight) {
view.setLayoutParams(p);
removeViewAt(0);
addView(view);
- view.getActiveEditText().requestFocus();
+ if(view.getActiveEditText() != null) view.getActiveEditText().requestFocus();
super.onLayout(changed, left, top, right, bottom);
}
}
- if(gravityRight && delta > 0) scrollBy(delta, 0);
+ // if(gravityRight && delta > 0) scrollBy(delta, 0);
}
}

0 comments on commit 3a8d186

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