diff options
Diffstat (limited to 'src/com/android/camera/CameraSettings.java')
-rw-r--r-- | src/com/android/camera/CameraSettings.java | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/src/com/android/camera/CameraSettings.java b/src/com/android/camera/CameraSettings.java index fb77e34..0c0f31b 100644 --- a/src/com/android/camera/CameraSettings.java +++ b/src/com/android/camera/CameraSettings.java @@ -16,50 +16,29 @@ package com.android.camera; -import android.content.SharedPreferences; import android.os.Bundle; -import android.preference.Preference; import android.preference.PreferenceActivity; -import android.content.Context; /** * CameraSettings */ -class CameraSettings extends PreferenceActivity +public class CameraSettings extends PreferenceActivity { public CameraSettings() { } - + protected int resourceId() { return R.xml.camera_preferences; } - + /** Called with the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); addPreferencesFromResource(resourceId()); - - Preference p = findPreference("pref_camera_upload_albumname_key"); - if (p != null) { - SharedPreferences sp = p.getSharedPreferences(); - p.setSummary( - String.format(getResources().getString(R.string.pref_camera_upload_albumname_summary), - p.getSharedPreferences().getString(p.getKey(), UploadService.sUploadAlbumName))); - p.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() { - public boolean onPreferenceChange(Preference p, Object newObjValue) { - String newValue = (String) newObjValue; - if (newValue == null || newValue.length() == 0) - return false; - if (android.util.Config.LOGV) - android.util.Log.v("camera", "onPreferenceChange ... " + newValue); - p.setSummary(String.format(getResources().getString(R.string.pref_camera_upload_albumname_summary), newValue)); - return true; - } - }); - } + } } |