Skip to content
Permalink
Browse files
front: fix issue with cheats not showing sometimes
  • Loading branch information
fzurita committed Mar 14, 2016
1 parent 94bbb42 commit 8a0b2c7
Showing 1 changed file with 13 additions and 10 deletions.
@@ -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.