Skip to content

Commit

Permalink
Fix Android 15 - OpenJDK API changes (#1949)
Browse files Browse the repository at this point in the history
Co-authored-by: reconman <reconman@users.noreply.github.com>
  • Loading branch information
ArthurKun21 and reconman authored Jan 11, 2025
1 parent 5deb4a7 commit 8d45fe5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fun CardPriorityWaveSelector(
if (selectedWave == items.lastIndex) {
onSelectedWaveChange(items.lastIndex - 1)
}
items.removeLast()
items.removeAt(items.lastIndex)
}
}
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class SkillMakerViewModel @Inject constructor(
if (skillString.isNotEmpty()) {
m.skillCommand.last().let { l ->
if (l is SkillMakerEntry.Action && l.action is AutoSkillAction.Atk) {
m.skillCommand.removeLast()
// openjdk problem with android 15
// https://developer.android.com/about/versions/15/behavior-changes-15#openjdk-api-changes
m.skillCommand.removeAt(m.skillCommand.lastIndex)
m.skillCommand.add(SkillMakerEntry.Next.Wave(l.action))
}
}
Expand Down

0 comments on commit 8d45fe5

Please sign in to comment.