Skip to content

Commit

Permalink
Fixed invalid default choice
Browse files Browse the repository at this point in the history
  • Loading branch information
gurrhack committed Jan 6, 2016
1 parent f95de2a commit 5df7d92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/android/src/com/tbd/NetHack/TilesetPreference.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ protected void onBindView(View view)
int i = mEntryValues.indexOf(currentValue);
if(i < 0)
i = mEntryValues.indexOf(TTY);
((RadioButton)mRoot.getChildAt(i)).setChecked(true);
if(!prefs.getBoolean("customTiles", false))
((RadioButton)mRoot.getChildAt(i)).setChecked(true);

mTilesetPath.setText(prefs.getString("customTileset", ""));
mTileW.setText(Integer.toString(prefs.getInt("customTileW", 32)));
Expand Down

0 comments on commit 5df7d92

Please sign in to comment.