Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63016e88 authored by Paul Crowley's avatar Paul Crowley Committed by android-build-merger
Browse files

Merge "Create String before bundling AsyncTask" into qt-dev am: 3d0fbc98

am: 681ac74b

Change-Id: I0d9ac43c8577ad632a9cd3300e804ec564019aeb
parents c01f1cee 681ac74b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -886,13 +886,13 @@ public class LockPatternUtils {
            return;
        }

        // TODO(b/120484642): This is a location where we still use a String for vold
        String passwordString = password != null ? new String(password) : null;
        new AsyncTask<Void, Void, Void>() {
            @Override
            protected Void doInBackground(Void... dummy) {
                IStorageManager storageManager = IStorageManager.Stub.asInterface(service);
                try {
                    // TODO(b/120484642): This is a location where we still use a String for vold
                    String passwordString = password != null ? new String(password) : null;
                    storageManager.changeEncryptionPassword(type, passwordString);
                } catch (RemoteException e) {
                    Log.e(TAG, "Error changing encryption password", e);