summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/settings/profiles/SetupActionsFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/profiles/SetupActionsFragment.java b/src/com/android/settings/profiles/SetupActionsFragment.java
index bcd98be..e9f0076 100644
--- a/src/com/android/settings/profiles/SetupActionsFragment.java
+++ b/src/com/android/settings/profiles/SetupActionsFragment.java
@@ -1046,7 +1046,7 @@ public class SetupActionsFragment extends SettingsPreferenceFragment
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
final Item itemAtPosition = (Item) parent.getItemAtPosition(position);
mSelectedItem = itemAtPosition;
- mLastSelectedPosition = position;
+ mLastSelectedPosition = mAdapter.getPosition(itemAtPosition);
if (itemAtPosition instanceof AirplaneModeItem) {
showDialog(DIALOG_AIRPLANE_MODE);