mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 19:42:45 +00:00
Don't crash if no files are present in /dev/input
This commit is contained in:
parent
e92a281fd8
commit
5577d48dcf
@ -67,6 +67,9 @@ public class EvdevWatcher {
|
|||||||
// Rundown existing files
|
// Rundown existing files
|
||||||
File devInputDir = new File(PATH);
|
File devInputDir = new File(PATH);
|
||||||
File[] files = devInputDir.listFiles();
|
File[] files = devInputDir.listFiles();
|
||||||
|
if (files == null) {
|
||||||
|
return new File[0];
|
||||||
|
}
|
||||||
|
|
||||||
// Set desired permissions
|
// Set desired permissions
|
||||||
String[] filePaths = new String[files.length];
|
String[] filePaths = new String[files.length];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user