Skip to content

Commit 6e068e3

Browse files
committed
Couple of very minor fixes.
1 parent f94cb38 commit 6e068e3

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ open class MainActivity : AppCompatActivity(),
468468
aztec.sourceEditor?.displayStyledAndFormattedHtml(EXAMPLE)
469469

470470
aztec.addPlugin(CssUnderlinePlugin())
471-
aztec.visualEditor.enableSamsungPredictiveBehaviorOverride()
472471
}
473472

474473
if (savedInstanceState == null) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
18861886
val html = Format.removeSourceEditorFormatting(parser.toHtml(output), isInCalypsoMode, isInGutenbergMode)
18871887

18881888
val clipboard = context.getSystemService(Context.CLIPBOARD_SERVICE) as android.content.ClipboardManager
1889-
clipboard.setPrimaryClip(ClipData.newHtmlText("aztec", output.toString(), html))
1889+
clipboard.primaryClip = ClipData.newHtmlText("aztec", output.toString(), html)
18901890
}
18911891

18921892
// copied from TextView with some changes

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ class SamsungInputConnection(
127127
override fun getTextBeforeCursor(length: Int, flags: Int): CharSequence {
128128
return baseInputConnection.getTextBeforeCursor(length, flags)
129129
}
130-
}
130+
}

0 commit comments

Comments
 (0)