Skip to content

Commit 88edf79

Browse files
authored
Forgot this
1 parent 5431197 commit 88edf79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/org/androidbootmanager/app/roms/ROMsList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public List<ROM> getROMs() {
4545
ArrayList<String> a = new ArrayList<String>(Arrays.asList(Objects.requireNonNull(SuFile.open("/data/abm/bootset/db/entries/").list())));
4646
a.removeIf((b) -> !b.contains("rom"));
4747
a.sort((b, c) -> Integer.compare(Integer.parseInt(b.replace("rom","").replace(".conf","")), Integer.parseInt(c.replace("rom","").replace(".conf",""))));
48-
int b = a.size() > 0 ? Integer.parseInt(a.get(a.size()-1).replace("rom",""))+1 : 0;
48+
int b = a.size() > 0 ? Integer.parseInt(a.get(a.size()-1).replace("rom","").replace(".conf",""))+1 : 0;
4949
r.strings.put(c.getString(R.string.enter_rom_folder), "rom" + b);
5050
r.gen = (imodel, menuName, folderName) -> imodel.setCmdline(Objects.requireNonNull(imodel.getROM().getValue()).fullPath + " '" + folderName + "' '" + menuName + "' " + Objects.requireNonNull(imodel.getParts().getValue()).get(0) + " " + imodel.getParts().getValue().get(1) + " /data/data/org.androidbootmanager.app/cache/system.img /data/data/org.androidbootmanager.app/cache/halium-boot.img");
5151
break;

0 commit comments

Comments
 (0)