File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/src/main/kotlin/org/wordpress/aztec/demo Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import androidx.appcompat.app.AlertDialog
3030import androidx.appcompat.app.AppCompatActivity
3131import androidx.appcompat.content.res.AppCompatResources
3232import androidx.core.app.ActivityCompat.OnRequestPermissionsResultCallback
33+ import androidx.core.content.ContextCompat
3334import androidx.core.content.FileProvider
3435import org.wordpress.android.util.AppLog
3536import org.wordpress.android.util.ImageUtils
@@ -469,7 +470,7 @@ open class MainActivity : AppCompatActivity(),
469470 aztec.visualEditor.setCalypsoMode(false )
470471 aztec.sourceEditor?.setCalypsoMode(false )
471472
472- aztec.visualEditor.setBackgroundSpanColor(resources .getColor(R .color.blue_dark))
473+ aztec.visualEditor.setBackgroundSpanColor(ContextCompat .getColor(this , R .color.blue_dark))
473474
474475 aztec.sourceEditor?.displayStyledAndFormattedHtml(EXAMPLE )
475476
You can’t perform that action at this time.
0 commit comments