ExactCalculator: Remove long-click to clear from backspace
Change-Id: I53c37e76d51f47f221e9ace4a607e8823f05fbe9
diff --git a/src/com/android/calculator2/Calculator.java b/src/com/android/calculator2/Calculator.java
index 02ccbb4..055f8fa 100644
--- a/src/com/android/calculator2/Calculator.java
+++ b/src/com/android/calculator2/Calculator.java
@@ -56,7 +56,6 @@
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
-import android.view.View.OnLongClickListener;
import android.view.ViewAnimationUtils;
import android.view.ViewGroupOverlay;
import android.view.ViewTreeObserver;
@@ -86,9 +85,9 @@
import java.text.DecimalFormatSymbols;
public class Calculator extends AppCompatActivity
- implements OnTextSizeChangeListener, OnLongClickListener,
- AlertDialogFragment.OnClickListener, Evaluator.EvaluationListener /* for main result */,
- DragLayout.CloseCallback, DragLayout.DragCallback {
+ implements OnTextSizeChangeListener, AlertDialogFragment.OnClickListener,
+ Evaluator.EvaluationListener /* for main result */, DragLayout.CloseCallback,
+ DragLayout.DragCallback {
private static final String TAG = "Calculator";
/**
@@ -422,7 +421,6 @@
mFormulaText.setOnTextSizeChangeListener(this);
mFormulaText.addTextChangedListener(mFormulaTextWatcher);
- mDeleteButton.setOnLongClickListener(this);
if (savedInstanceState != null) {
restoreInstanceState(savedInstanceState);
@@ -881,17 +879,6 @@
? getString(R.string.desc_formula) : null);
}
- @Override
- public boolean onLongClick(View view) {
- mCurrentButton = view;
-
- if (view.getId() == R.id.del) {
- onClear();
- return true;
- }
- return false;
- }
-
// Initial evaluation completed successfully. Initiate display.
public void onEvaluate(long index, int initDisplayPrec, int msd, int leastDigPos,
String truncatedWholeNumber) {