Skip to content

Commit

Permalink
Allow null for loadUrl
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Mayer <[email protected]>
  • Loading branch information
JonasMayerDev authored and tobiasKaminsky committed Jan 15, 2024
1 parent 576a271 commit 6464705
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ class RichDocumentsEditorWebView : EditorWebView() {

webView.addJavascriptInterface(RichDocumentsMobileInterface(), "RichDocumentsMobileInterface")

intent.getStringExtra(EXTRA_URL)?.let {
loadUrl(it)
}
loadUrl(intent.getStringExtra(EXTRA_URL))

registerActivityResult()
}
Expand Down Expand Up @@ -155,7 +153,7 @@ class RichDocumentsEditorWebView : EditorWebView() {
PrintAsyncTask(targetFile, url.toString(), WeakReference(this)).execute()
}

public override fun loadUrl(url: String) {
public override fun loadUrl(url: String?) {
if (TextUtils.isEmpty(url)) {
RichDocumentsLoadUrlTask(this, user.get(), file).execute()
} else {
Expand Down

0 comments on commit 6464705

Please sign in to comment.