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

Commit 9a7ef9c0 authored by Sahil Sonar's avatar Sahil Sonar 💬 Committed by Nishith Khanna
Browse files

UdfpsController: Move writeToUdfpsNode to background executor

parent ef62ecad
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -249,13 +249,14 @@ public class UdfpsController implements DozeReceiver, Dumpable {
    }

    private void writeToUdfpsNode(String path, String value) {

         mBiometricExecutor.execute(() -> {
             try (FileWriter writer = new FileWriter(path)) {
                  writer.write(value);
                  Log.d(TAG, "Successfully set " + path + " to " + value);
             } catch (IOException e) {
                  Log.e(TAG, "Failed to write to " + path, e);
             }
         });
    }

    @VisibleForTesting