Permalink
Browse files

front: fix issue with cheats not showing sometimes

  • Loading branch information...
fzurita committed Mar 14, 2016
1 parent 94bbb42 commit 8a0b2c70169ab6ce434ddcd60443a22d03d83055
Showing with 13 additions and 10 deletions.
  1. +13 −10 src/paulscode/android/mupen64plusae/persistent/GamePrefsActivity.java
@@ -357,19 +357,22 @@ else if (openGlVersion.equals("3.0"))
private void refreshCheatsCategory()
{
if(mGamePrefs.isCheatOptionsShown)
if (mCategoryCheats != null)
{
if(mCategoryCheats.getPreferenceCount() == 0 || mClearCheats)
if (mGamePrefs.isCheatOptionsShown)
{
final ExtractCheatsTask cheatsTask = new ExtractCheatsTask(this, this, mAppData.mupencheat_txt,
mRomCrc, mRomCountryCode);
cheatsTask.execute((String) null);
if (mCategoryCheats.getPreferenceCount() == 0 || mClearCheats)
{
ExtractCheatsTask cheatsTask = new ExtractCheatsTask(this, this, mAppData.mupencheat_txt, mRomCrc,
mRomCountryCode);
cheatsTask.execute((String) null);
}
}
else
{
mScreenCheats.removePreference(mCategoryCheats);
mCategoryCheats.removeAll();
}
}
else if(mCategoryCheats != null)
{
mScreenCheats.removePreference( mCategoryCheats );
mCategoryCheats.removeAll();
}
}

0 comments on commit 8a0b2c7

Please sign in to comment.