Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57acac1d authored by gaurav sharma's avatar gaurav sharma Committed by Josh Guilfoyle
Browse files

Revert "added the callback"

This reverts commit 452298576a1595c3e2d1ea6d4f7ac4c29dc522f8.
parent 2b668394
Loading
Loading
Loading
Loading
+12 −3
Original line number Diff line number Diff line
@@ -40,6 +40,18 @@ public class SpinnerPreference extends Preference implements
		notifyChanged();
	}

	@Override
	protected void onClick() {
		super.onClick();

		int newValue = getSelectedIndex();

		if (!callChangeListener(newValue)) {
			return;
		}
		setSelectedIndex(newValue);
	}

	public void setAdapter(SpinnerAdapter adapter) {
		mAdapter = adapter;
	}
@@ -134,9 +146,6 @@ public class SpinnerPreference extends Preference implements

	public void onSelectionChange(int value) {

		if (!callChangeListener(value)) {
			return;
		}
		setSelectedIndex(value);
	}