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

This commit is contained in:
TreeHugger Robot
2017-08-28 23:15:26 +00:00
committed by Android (Google) Code Review

View File

@@ -900,6 +900,8 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
} }
private void updatePasswordSummary() { private void updatePasswordSummary() {
mPassword.setEnabled(mBackupManager != null);
if (mBackupManager != null) {
try { try {
if (mBackupManager.hasBackupPassword()) { if (mBackupManager.hasBackupPassword()) {
mPassword.setSummary(R.string.local_backup_password_summary_change); mPassword.setSummary(R.string.local_backup_password_summary_change);
@@ -910,6 +912,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
// Not much we can do here // Not much we can do here
} }
} }
}
private void writeBtHciSnoopLogOptions() { private void writeBtHciSnoopLogOptions() {
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();