editor.putBoolean("bookmark.perf_remotefx",
performanceFlags.getRemoteFX());
+ editor.putBoolean("bookmark.perf_gfx",
+ performanceFlags.getGfx());
+ editor.putBoolean("bookmark.perf_gfx_h264",
+ performanceFlags.getH264());
editor.putBoolean("bookmark.perf_wallpaper",
performanceFlags.getWallpaper());
editor.putBoolean("bookmark.perf_font_smoothing",
editor.putBoolean("bookmark.perf_remotefx_3g", advancedSettings
.getPerformance3G().getRemoteFX());
+ editor.putBoolean("bookmark.perf_gfx_3g", advancedSettings
+ .getPerformance3G().getGfx());
+ editor.putBoolean("bookmark.perf_gfx_h264_3g", advancedSettings
+ .getPerformance3G().getH264());
editor.putBoolean("bookmark.perf_wallpaper_3g", advancedSettings
.getPerformance3G().getWallpaper());
editor.putBoolean("bookmark.perf_font_smoothing_3g", advancedSettings
performanceFlags.setRemoteFX(sharedPrefs.getBoolean(
"bookmark.perf_remotefx", false));
+ performanceFlags.setGfx(sharedPrefs.getBoolean(
+ "bookmark.perf_gfx", false));
+ performanceFlags.setH264(sharedPrefs.getBoolean(
+ "bookmark.perf_gfx_h264", false));
performanceFlags.setWallpaper(sharedPrefs.getBoolean(
"bookmark.perf_wallpaper", false));
performanceFlags.setFontSmoothing(sharedPrefs.getBoolean(
advancedSettings.getPerformance3G().setRemoteFX(
sharedPrefs.getBoolean("bookmark.perf_remotefx_3g", false));
+ advancedSettings.getPerformance3G().setGfx(sharedPrefs.getBoolean(
+ "bookmark.perf_gfx_3g", false));
+ advancedSettings.getPerformance3G().setH264(sharedPrefs.getBoolean(
+ "bookmark.perf_gfx_h264_3g", false));
advancedSettings.getPerformance3G().setWallpaper(
sharedPrefs.getBoolean("bookmark.perf_wallpaper_3g", false));
advancedSettings.getPerformance3G().setFontSmoothing(
private void addPerformanceFlagsColumns(ArrayList<String> columns) {
columns.add("join_performance_flags.perf_remotefx as performanceRemoteFX");
+ columns.add("join_performance_flags.perf_gfx as performanceGfx");
+ columns.add("join_performance_flags.perf_gfx_h264 as performanceGfxH264");
columns.add("join_performance_flags.perf_wallpaper as performanceWallpaper");
columns.add("join_performance_flags.perf_theming as performanceTheming");
columns.add("join_performance_flags.perf_full_window_drag as performanceFullWindowDrag");
private void addPerformanceFlags3GColumns(ArrayList<String> columns) {
columns.add("join_performance_3G.perf_remotefx as performanceRemoteFX3G");
+ columns.add("join_performance_3G.perf_gfx as performanceGfx3G");
+ columns.add("join_performance_3G.perf_gfx_h264 as performanceGfxH2643G");
columns.add("join_performance_3G.perf_wallpaper as performanceWallpaper3G");
columns.add("join_performance_3G.perf_theming as performanceTheming3G");
columns.add("join_performance_3G.perf_full_window_drag as performanceFullWindowDrag3G");
private void readPerformanceFlags(BookmarkBase bookmark, Cursor cursor) {
BookmarkBase.PerformanceFlags perfFlags = bookmark.getPerformanceFlags();
perfFlags.setRemoteFX(cursor.getInt(cursor.getColumnIndex("performanceRemoteFX")) == 0 ? false : true);
+ perfFlags.setGfx(cursor.getInt(cursor.getColumnIndex("performanceGfx")) == 0 ? false :
+ true);
+ perfFlags.setH264(cursor.getInt(cursor.getColumnIndex("performanceGfxH264")) == 0 ?
+ false :
+ true);
perfFlags.setWallpaper(cursor.getInt(cursor.getColumnIndex("performanceWallpaper")) == 0 ? false : true);
perfFlags.setTheming(cursor.getInt(cursor.getColumnIndex("performanceTheming")) == 0 ? false : true);
perfFlags.setFullWindowDrag(cursor.getInt(cursor.getColumnIndex("performanceFullWindowDrag")) == 0 ? false : true);
private void readPerformanceFlags3G(BookmarkBase bookmark, Cursor cursor) {
BookmarkBase.PerformanceFlags perfFlags = bookmark.getAdvancedSettings().getPerformance3G();
perfFlags.setRemoteFX(cursor.getInt(cursor.getColumnIndex("performanceRemoteFX3G")) == 0 ? false : true);
+ perfFlags.setGfx(cursor.getInt(cursor.getColumnIndex("performanceGfx3G")) == 0 ? false :
+ true);
+ perfFlags.setH264(cursor.getInt(cursor.getColumnIndex("performanceGfxH2643G")) == 0 ?
+ false :
+ true);
perfFlags.setWallpaper(cursor.getInt(cursor.getColumnIndex("performanceWallpaper3G")) == 0 ? false : true);
perfFlags.setTheming(cursor.getInt(cursor.getColumnIndex("performanceTheming3G")) == 0 ? false : true);
perfFlags.setFullWindowDrag(cursor.getInt(cursor.getColumnIndex("performanceFullWindowDrag3G")) == 0 ? false : true);
private void fillPerformanceFlagsContentValues(BookmarkBase.PerformanceFlags perfFlags, ContentValues values)
{
values.put("perf_remotefx", perfFlags.getRemoteFX());
+ values.put("perf_gfx", perfFlags.getGfx());
+ values.put("perf_gfx_h264", perfFlags.getH264());
values.put("perf_wallpaper", perfFlags.getWallpaper());
values.put("perf_theming", perfFlags.getTheming());
values.put("perf_full_window_drag", perfFlags.getFullWindowDrag());
"CREATE TABLE tbl_performance_flags ("
+ ID + " INTEGER PRIMARY KEY, "
+ "perf_remotefx INTEGER, "
- + "perf_gfx INTEGER,"
- + "perf_gfx_h264 INTEGER,"
+ + "perf_gfx INTEGER, "
+ + "perf_gfx_h264 INTEGER, "
+ "perf_wallpaper INTEGER, "
+ "perf_theming INTEGER, "
+ "perf_full_window_drag INTEGER, "
+ "VALUES ( "
+ "32, 1, 1024, 768);";
db.execSQL(sqlInsertDefaultScreenEntry);
- db.execSQL(sqlInsertDefaultScreenEntry);
String sqlInsertDefaultPerfFlags =
"INSERT INTO tbl_performance_flags ("
+ "VALUES ( "
+ "1, 1, 1, 0, 0, 0, 0, 0, 0);";
db.execSQL(sqlInsertDefaultPerfFlags);
- db.execSQL(sqlInsertDefaultPerfFlags);
String sqlInsertDefaultSessionEntry =
"INSERT INTO tbl_manual_bookmarks ("
args.add("/gfx");
}
- args.add(addFlag("gfx-h264", flags.getH264()));
+ if (flags.getH264()) {
+ args.add("/gfx-h264");
+ }
args.add(addFlag("wallpaper", flags.getWallpaper()));
args.add(addFlag("window-drag", flags.getFullWindowDrag()));