Android: Fix possible crash in memory card editor

pull/1859/head
Connor McLaughlin 5 years ago
parent 4c3d2cd3fe
commit dd130c2132

@ -242,7 +242,7 @@ public class MemoryCardEditorActivity extends AppCompatActivity {
if (cards.isEmpty())
return;
if (newSelection < 0) {
if (newSelection < 0 || newSelection >= tabLayout.getTabCount()) {
if (oldPos < cards.size())
tabLayout.getTabAt(oldPos).select();
else

Loading…
Cancel
Save