Skip to content

Commit c2baa41

Browse files
committed
Refactoring
1 parent c55efb2 commit c2baa41

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/src/main/kotlin/org/wordpress/aztec/demo/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ class MainActivity : AppCompatActivity(),
346346

347347
if (savedInstanceState == null) {
348348
aztec.visualEditor.fromHtml(aztec.sourceEditor?.getPureHtml()!!)
349-
aztec.initHistory()
349+
aztec.initSourceEditorHistory()
350350
}
351351

352352
invalidateOptionsHandler = Handler()
@@ -381,7 +381,7 @@ class MainActivity : AppCompatActivity(),
381381
override fun onRestoreInstanceState(savedInstanceState: Bundle?) {
382382
super.onRestoreInstanceState(savedInstanceState)
383383

384-
aztec.initHistory()
384+
aztec.initSourceEditorHistory()
385385

386386
savedInstanceState?.let {
387387
if (savedInstanceState.getBoolean("isPhotoMediaDialogVisible")) {

aztec/src/main/kotlin/org/wordpress/aztec/Aztec.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ open class Aztec private constructor(val visualEditor: AztecText, val toolbar: A
4444
this.sourceEditor = sourceEditor
4545

4646
initToolbar()
47-
initHistory()
47+
initSourceEditorHistory()
4848
}
4949

5050
companion object Factory {
@@ -129,7 +129,7 @@ open class Aztec private constructor(val visualEditor: AztecText, val toolbar: A
129129
return this
130130
}
131131

132-
fun initHistory() {
132+
fun initSourceEditorHistory() {
133133
sourceEditor?.history = visualEditor.history
134134
}
135135

0 commit comments

Comments
 (0)