Skip to content

Commit 839f755

Browse files
committed
first step to remove getContentEditText/getTitleEditText
1 parent aec6410 commit 839f755

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

WordPressEditor/src/main/java/org/wordpress/android/editor/EditorFragmentAbstract.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,22 @@ public void onAttach(Activity activity) {
2121
}
2222
}
2323

24+
/**
25+
* Called by the activity when back button is pressed.
26+
*/
27+
public boolean onBackPressed() {
28+
return false;
29+
}
30+
31+
/**
32+
* The editor may need to differentiate local draft and published articles
33+
*
34+
* @param isLocalDraft edited post is a local draft
35+
*/
36+
public void setLocalDraft(boolean isLocalDraft) {
37+
// Not unused in the new editor
38+
}
39+
2440
public interface EditorFragmentListener {
2541
public void onSettingsClicked();
2642
public void onAddMediaButtonClicked();

0 commit comments

Comments
 (0)