Skip to content

Commit 9bedc1e

Browse files
committed
Enable editor debug mode when BuildConfig.DEBUG is true
1 parent 3e8aeff commit 9bedc1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostActivity.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import android.webkit.URLUtil;
4242
import android.widget.Toast;
4343

44+
import org.wordpress.android.BuildConfig;
4445
import org.wordpress.android.Constants;
4546
import org.wordpress.android.JavaScriptException;
4647
import org.wordpress.android.R;
@@ -2034,6 +2035,7 @@ public void onEditorFragmentInitialized() {
20342035
fillContentEditorFields();
20352036
// Set the error listener
20362037
if (mEditorFragment instanceof EditorFragment) {
2038+
mEditorFragment.setDebugModeEnabled(BuildConfig.DEBUG);
20372039
((EditorFragment) mEditorFragment).setWebViewErrorListener(new ErrorListener() {
20382040
@Override
20392041
public void onJavaScriptError(String sourceFile, int lineNumber, String message) {

0 commit comments

Comments
 (0)