Permalink
Browse files

front: Fix crash when enabling cheats with options

  • Loading branch information...
fzurita committed Mar 20, 2016
1 parent 1638248 commit 9b402191224020d617b3bd16dd03f1ce1a068cc3
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 9b40219

Please sign in to comment.