diff options
author | Chung-yih Wang <cywang@google.com> | 2011-09-30 14:49:35 +0800 |
---|---|---|
committer | Chung-yih Wang <cywang@google.com> | 2011-09-30 15:31:50 +0800 |
commit | 757459bc8ded7e5708d8ad99ff38a3cb41904640 (patch) | |
tree | 5d5ae030833882b08a721d05bf2a09087ef83189 /src/com/android/camera/ui/OtherSettingsPopup.java | |
parent | a11e8424441d555994e76fb27c9b34f8b75fa46e (diff) | |
download | LegacyCamera-757459bc8ded7e5708d8ad99ff38a3cb41904640.zip LegacyCamera-757459bc8ded7e5708d8ad99ff38a3cb41904640.tar.gz LegacyCamera-757459bc8ded7e5708d8ad99ff38a3cb41904640.tar.bz2 |
Remove mContext varaibles in Views.
Since mContext is already a protected member in View, we should reuse it
instead.
Change-Id: I7bad94a8e7aabc6c4141be8950a867ff70e63731
Diffstat (limited to 'src/com/android/camera/ui/OtherSettingsPopup.java')
-rw-r--r-- | src/com/android/camera/ui/OtherSettingsPopup.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/camera/ui/OtherSettingsPopup.java b/src/com/android/camera/ui/OtherSettingsPopup.java index 1357012..4b82c20 100644 --- a/src/com/android/camera/ui/OtherSettingsPopup.java +++ b/src/com/android/camera/ui/OtherSettingsPopup.java @@ -40,7 +40,6 @@ public class OtherSettingsPopup extends AbstractSettingPopup AdapterView.OnItemClickListener { private static final String TAG = "OtherSettingsPopup"; - private Context mContext; private Listener mListener; private ArrayList<ListPreference> mListItem = new ArrayList<ListPreference>(); @@ -53,8 +52,8 @@ public class OtherSettingsPopup extends AbstractSettingPopup LayoutInflater mInflater; OtherSettingsAdapter() { - super(mContext, 0, mListItem); - mInflater = LayoutInflater.from(mContext); + super(OtherSettingsPopup.this.getContext(), 0, mListItem); + mInflater = LayoutInflater.from(getContext()); } private int getSettingLayoutId(ListPreference pref) { @@ -92,7 +91,6 @@ public class OtherSettingsPopup extends AbstractSettingPopup public OtherSettingsPopup(Context context, AttributeSet attrs) { super(context, attrs); - mContext = context; } public void initialize(PreferenceGroup group, String[] keys) { |