Merge "Encrypt inplace settings." into honeycomb

This commit is contained in:
Jason parks
2011-01-20 15:50:55 -08:00
committed by Android (Google) Code Review
4 changed files with 25 additions and 13 deletions

View File

@@ -31,8 +31,8 @@ import android.text.InputType;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.inputmethod.EditorInfo;
import android.widget.TextView;
import android.widget.TextView.OnEditorActionListener;
@@ -138,7 +138,11 @@ public class ConfirmLockPassword extends PreferenceActivity {
private void handleNext() {
final String pin = mPasswordEntry.getText().toString();
if (mLockPatternUtils.checkPassword(pin)) {
getActivity().setResult(RESULT_OK);
Intent intent = new Intent();
intent.putExtra("password", pin);
getActivity().setResult(RESULT_OK, intent);
getActivity().finish();
} else {
showError(R.string.lockpattern_need_to_unlock_wrong);

View File

@@ -372,8 +372,6 @@ public class SecuritySettings extends SettingsPreferenceFragment
} else if (preference == mAssistedGps) {
Settings.Secure.putInt(getContentResolver(), Settings.Secure.ASSISTED_GPS_ENABLED,
mAssistedGps.isChecked() ? 1 : 0);
} else if (KEY_ENCRYPTION.equals(key)) {
new Encryption().showPasswordDialog();
} else {
// If we didn't handle it, let preferences handle it.
return super.onPreferenceTreeClick(preferenceScreen, preference);