summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/OtherSettingsIndicator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/ui/OtherSettingsIndicator.java')
-rw-r--r--src/com/android/camera/ui/OtherSettingsIndicator.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/com/android/camera/ui/OtherSettingsIndicator.java b/src/com/android/camera/ui/OtherSettingsIndicator.java
index 27d0d80..2833cfe 100644
--- a/src/com/android/camera/ui/OtherSettingsIndicator.java
+++ b/src/com/android/camera/ui/OtherSettingsIndicator.java
@@ -15,8 +15,10 @@ public class OtherSettingsIndicator extends AbstractIndicator {
private GLListView mPopupContent;
private final HashMap<String, String> mOverrides = new HashMap<String, String>();
- public OtherSettingsIndicator(ListPreference preference[]) {
- mPreference = preference.clone();
+ public OtherSettingsIndicator(
+ Context context, ListPreference preference[]) {
+ super(context);
+ mPreference = preference;
mAdapters = new PreferenceAdapter[preference.length];
}
@@ -56,7 +58,7 @@ public class OtherSettingsIndicator extends AbstractIndicator {
String override = mOverrides.get(prefs[i].getKey());
if (override != null) adapters[i].overrideSettings(override);
}
- return new UberAdapter(adapters);
+ return new UberAdapter();
}
@Override
@@ -78,12 +80,6 @@ public class OtherSettingsIndicator extends AbstractIndicator {
private class UberAdapter implements
GLListView.Model, GLListView.OnItemSelectedListener {
- private final PreferenceAdapter mAdapters[];
-
- public UberAdapter(PreferenceAdapter[] adapters) {
- mAdapters = adapters;
- }
-
public GLView getView(int index) {
for (PreferenceAdapter adapter : mAdapters) {
if (index < adapter.size()) {