Skip to content

Commit

Permalink
Fix Crash When Creating Preset on Controller Mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
KreitinnSoftware committed Jan 21, 2025
1 parent 3490b65 commit 7ba96df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ class ControllerMapper : AppCompatActivity() {
fun addControllerPreset(context: Context, name: String) {
val preferences = PreferenceManager.getDefaultSharedPreferences(context)
val currentList = loadControllerPresets(context)
val defaultList = ArrayList(Collections.nCopies(25, ":")).apply {
val defaultList = ArrayList(Collections.nCopies(mappingMap.size + 1, ":")).apply {
this[0] = name
this[mappingMap[DEAD_ZONE]!!] = "25"
this[mappingMap[MOUSE_SENSIBILITY]!!] = "100"
Expand Down

0 comments on commit 7ba96df

Please sign in to comment.