Mockingboard is now default enabled on Android ... temporarily force this upgrade in version 16

This commit is contained in:
Aaron Culliney 2016-01-24 13:22:38 -08:00
parent 1912428ed3
commit c5298eb6f0
2 changed files with 10 additions and 0 deletions

View File

@ -138,6 +138,11 @@ public class Apple2Activity extends Activity {
// allow for primitive migrations as needed
Apple2Preferences.EMULATOR_VERSION.saveInt(this, BuildConfig.VERSION_CODE);
Log.v(TAG, "Triggering migration to Apple2ix version : " + BuildConfig.VERSION_NAME);
// HACK FIXME TODO 2016/01/24 REMOVE AFTER version 16 ships ... force enables Mockingboard
if (BuildConfig.VERSION_CODE == 16) {
Apple2Preferences.MOCKINGBOARD_ENABLED.saveBoolean(this, true);
}
}
showSplashScreen(!firstTime);

View File

@ -205,6 +205,11 @@ public enum Apple2Preferences {
activity.getPreferences(Context.MODE_PRIVATE).edit().putBoolean(toString(), false).apply();
}
}
@Override
public boolean booleanValue(Apple2Activity activity) {
return activity.getPreferences(Context.MODE_PRIVATE).getBoolean(toString(), true);
}
},
MOCKINGBOARD_VOLUME {
@Override