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

Commit 81e014ce 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

Change-Id: If2610098bef68780782e0a11014b97efd0f38a70
parents 8825f11b 3d0fbc98
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);