summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CameraPreference.java
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2010-03-10 10:53:02 +0800
committerOwen Lin <owenlin@google.com>2010-03-14 16:52:10 +0800
commitc24155c65b45f554ffc29c523d7ea8e63ea10d33 (patch)
tree334b1fa881954897069231b978a80208aef9a555 /src/com/android/camera/CameraPreference.java
parent7da52284cebf4e292033975e428b21affb661d73 (diff)
downloadLegacyCamera-c24155c65b45f554ffc29c523d7ea8e63ea10d33.zip
LegacyCamera-c24155c65b45f554ffc29c523d7ea8e63ea10d33.tar.gz
LegacyCamera-c24155c65b45f554ffc29c523d7ea8e63ea10d33.tar.bz2
Restore Settings.
Change-Id: Ie5c26869151dd8959c122bf3c748d61420ac5c30
Diffstat (limited to 'src/com/android/camera/CameraPreference.java')
-rw-r--r--src/com/android/camera/CameraPreference.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/camera/CameraPreference.java b/src/com/android/camera/CameraPreference.java
index 607d9c2..62bf91f 100644
--- a/src/com/android/camera/CameraPreference.java
+++ b/src/com/android/camera/CameraPreference.java
@@ -30,9 +30,9 @@ import com.android.camera.R;
*/
public abstract class CameraPreference {
- private String mTitle;
+ private final String mTitle;
private SharedPreferences mSharedPreferences;
- private Context mContext;
+ private final Context mContext;
public CameraPreference(Context context, AttributeSet attrs) {
mContext = context;
@@ -46,7 +46,7 @@ public abstract class CameraPreference {
return mTitle;
}
- protected SharedPreferences getSharedPreferences() {
+ public SharedPreferences getSharedPreferences() {
if (mSharedPreferences == null) {
mSharedPreferences =
PreferenceManager.getDefaultSharedPreferences(mContext);