Skip to content

Commit

Permalink
[robotv-atv] SetupFragment: handle array out of bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
pipelka committed Dec 29, 2020
1 parent 5a2a9dd commit 8d34b91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion robotv-atv/src/main/java/org/robotv/setup/SetupFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ public void onResume() {
langIndex = 0;
}

mActionLanguage.setDescription(langArray[langIndex]);
if(langIndex != -1){
mActionLanguage.setDescription(langArray[langIndex]);
}

boolean passthrough = SetupUtils.getPassthrough(getActivity());
mActionPassthrough.setChecked(passthrough);
Expand Down

0 comments on commit 8d34b91

Please sign in to comment.