From e3a504f62daed857f679077cef6db518b2d55a4e Mon Sep 17 00:00:00 2001 From: serso Date: Mon, 19 Sep 2011 10:44:47 +0400 Subject: [PATCH] signature changed --- .../org/solovyev/android/calculator/CalculatorActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java b/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java index efe4c966..affe981d 100644 --- a/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java +++ b/src/main/java/org/solovyev/android/calculator/CalculatorActivity.java @@ -62,7 +62,7 @@ public class CalculatorActivity extends Activity implements FontSizeAdjuster { final DragButtonCalibrationActivity.Preferences dragPreferences = DragButtonCalibrationActivity.getPreferences(this); final SimpleOnDragListener onDragListener = new SimpleOnDragListener(new DigitButtonDragProcessor(calculatorView), dragPreferences); - dpclRegister.addListener(onDragListener); + dpclRegister.add(onDragListener); // todo serso: check if there is more convenient method for doing this final R.id ids = new R.id(); @@ -84,12 +84,12 @@ public class CalculatorActivity extends Activity implements FontSizeAdjuster { final SimpleOnDragListener historyOnDragListener = new SimpleOnDragListener(new HistoryDragProcessor(this.calculatorView), dragPreferences); ((DragButton) findViewById(R.id.historyButton)).setOnDragListener(historyOnDragListener); - dpclRegister.addListener(historyOnDragListener); + dpclRegister.add(historyOnDragListener); final SimpleOnDragListener toPositionOnDragListener = new SimpleOnDragListener(new CursorDragProcessor(calculatorView), dragPreferences); ((DragButton) findViewById(R.id.rightButton)).setOnDragListener(toPositionOnDragListener); ((DragButton) findViewById(R.id.leftButton)).setOnDragListener(toPositionOnDragListener); - dpclRegister.addListener(toPositionOnDragListener); + dpclRegister.add(toPositionOnDragListener); preferencesChangesReceiver = new BroadcastReceiver() {