Skip to content

Commit

Permalink
Merge pull request #4187 from wordpress-mobile/issue/new-editor-migra…
Browse files Browse the repository at this point in the history
…tion

Visual editor migration
  • Loading branch information
aforcier committed Jun 8, 2016
2 parents e6b9a42 + 9c67b1d commit e7edff6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
10 changes: 0 additions & 10 deletions WordPress/src/main/java/org/wordpress/android/WordPress.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,16 +216,6 @@ public void onCreate() {

// If users uses a custom locale set it on start of application
WPActivityUtils.applyLocale(getContext());

// TODO: remove this after the visual editor is enabled in a release version (5.4 if everything goes well)
enableVisualEditorForBetaUsers();
}

private void enableVisualEditorForBetaUsers() {
if (BuildConfig.VERSION_NAME.contains("5.4-rc")) {
AppPrefs.setVisualEditorAvailable(true);
AppPrefs.setVisualEditorEnabled(true);
}
}

private void initAnalytics(final long elapsedTimeOnCreate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class WordPressDB {
public static final String COLUMN_NAME_VIDEO_PRESS_SHORTCODE = "videoPressShortcode";
public static final String COLUMN_NAME_UPLOAD_STATE = "uploadState";

private static final int DATABASE_VERSION = 46;
private static final int DATABASE_VERSION = 47;

private static final String CREATE_TABLE_BLOGS = "create table if not exists accounts (id integer primary key autoincrement, "
+ "url text, blogName text, username text, password text, imagePlacement text, centerThumbnail boolean, fullSizeImage boolean, maxImageWidth text, maxImageWidthId integer);";
Expand Down Expand Up @@ -419,6 +419,10 @@ public WordPressDB(Context ctx) {
case 45:
db.execSQL(ADD_BLOGS_CAPABILITIES);
currentVersion++;
case 46:
AppPrefs.setVisualEditorAvailable(true);
AppPrefs.setVisualEditorEnabled(true);
currentVersion++;
}
db.setVersion(DATABASE_VERSION);
}
Expand Down

0 comments on commit e7edff6

Please sign in to comment.