Permalink
Browse files

front: Fix crash when enabling cheats with options

  • Loading branch information...
1 parent 4f08855 commit 38e824346f74dc3de0ce66774721ee98e5e4225b @fzurita fzurita committed Mar 20, 2016
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/paulscode/android/mupen64plusae/cheat/CheatPreference.java
@@ -149,7 +149,10 @@ public void onBindViewHolder(PreferenceViewHolder holder)
mCheckbox.setClickable( false );
// Refresh the widgets
- refreshWidgets();
+ if( mCheckbox != null )
+ {
+ mCheckbox.setChecked( isCheatEnabled() );
+ }
}
@Override

0 comments on commit 38e8243

Please sign in to comment.