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

Commit 3493e5b0 authored by Sahil Sonar's avatar Sahil Sonar 💬
Browse files

UdfpsController: Move writeToUdfpsNode to background executor

parent 00bd0035
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -245,13 +245,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