mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-22 08:07:54 +00:00
Don't crash if no files are present in /dev/input
This commit is contained in:
1 parent
e92a281fd8
commit
5577d48dcf
1 file changed
+3
@@ -67,6 +67,9 @@ public class EvdevWatcher {
|
||||
// Rundown existing files
|
||||
File devInputDir = new File(PATH);
|
||||
File[] files = devInputDir.listFiles();
|
||||
if (files == null) {
|
||||
return new File[0];
|
||||
}
|
||||
|
||||
// Set desired permissions
|
||||
String[] filePaths = new String[files.length];
|
||||
|
||||
Reference in new issue
Block a user