Skip to content

Commit

Permalink
Merge pull request #68 from Kashinathpat/patch-1
Browse files Browse the repository at this point in the history
Fix Shortcuts crash
  • Loading branch information
brunodev85 authored Jul 25, 2024
2 parents 8e2058e + 1fa31b4 commit eed37d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/main/java/com/winlator/container/Shortcut.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ public Shortcut(Container container, File file) {

int index;
for (String line : FileUtils.readLines(file)) {
index = line.indexOf("[");
if (index != -1) {
section = line.substring(index+1, line.indexOf("]", index));
line = line.trim();
if (line.isEmpty() || line.startsWith("#")) continue; // Skip empty lines and comments
if (line.startsWith("[")) {
section = line.substring(1, line.indexOf("]"));
}
else {
index = line.indexOf("=");
Expand Down

1 comment on commit eed37d6

@Lamfi
Copy link

@Lamfi Lamfi commented on eed37d6 Jul 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix FPS drops when using the touch - void updatePointer?

Please sign in to comment.