Merge "Fix crash in developer settings when backup is not available" into oc-mr1-dev

am: 6f72b57428

Change-Id: I96f26ec23db34ff642a11cbcdef888fa9e5072bf
This commit is contained in:
Alex Vakulenko
2017-08-28 23:45:19 +00:00
committed by android-build-merger

View File

@@ -900,14 +900,17 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
}
private void updatePasswordSummary() {
try {
if (mBackupManager.hasBackupPassword()) {
mPassword.setSummary(R.string.local_backup_password_summary_change);
} else {
mPassword.setSummary(R.string.local_backup_password_summary_none);
mPassword.setEnabled(mBackupManager != null);
if (mBackupManager != null) {
try {
if (mBackupManager.hasBackupPassword()) {
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
}
}