Merge "Fix crash in developer settings when backup is not available" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6f72b57428
@@ -900,14 +900,17 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updatePasswordSummary() {
|
private void updatePasswordSummary() {
|
||||||
try {
|
mPassword.setEnabled(mBackupManager != null);
|
||||||
if (mBackupManager.hasBackupPassword()) {
|
if (mBackupManager != null) {
|
||||||
mPassword.setSummary(R.string.local_backup_password_summary_change);
|
try {
|
||||||
} else {
|
if (mBackupManager.hasBackupPassword()) {
|
||||||
mPassword.setSummary(R.string.local_backup_password_summary_none);
|
mPassword.setSummary(R.string.local_backup_password_summary_change);
|
||||||
|
} else {
|
||||||
|
mPassword.setSummary(R.string.local_backup_password_summary_none);
|
||||||
|
}
|
||||||
|
} catch (RemoteException e) {
|
||||||
|
// Not much we can do here
|
||||||
}
|
}
|
||||||
} catch (RemoteException e) {
|
|
||||||
// Not much we can do here
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user