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

Commit 56e455ba authored by /e/ robot's avatar /e/ robot
Browse files

Merge remote-tracking branch 'origin/lineage-20.0' into v1-t

parents 268329aa 8221cad4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -409,7 +409,8 @@ final class WiredAccessoryManager implements WiredAccessoryCallbacks {
                        FileReader file = new FileReader(switchStatePath);
                        int len = file.read(buffer, 0, 1024);
                        file.close();
                        curState = Integer.parseInt((new String(buffer, 0, len)).trim());
                        curState = Integer.parseInt(
                                (new String(buffer, 0, len).replaceAll("\\D+","")).trim());

                        if (curState > 0) {
                            int index = switchStatePath.lastIndexOf(".");