mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Merge pull request #4106 from nextcloud/richDocumentsGrabFocus
Richdocuments: grab focus on resume
This commit is contained in:
commit
4e12a88e14
1 changed files with 8 additions and 0 deletions
|
@ -348,6 +348,14 @@ public class RichDocumentsWebView extends ExternalSiteWebView {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
|
||||
webview.evaluateJavascript("if (typeof OCA.RichDocuments.documentsMain.postGrabFocus !== 'undefined') " +
|
||||
"{ OCA.RichDocuments.documentsMain.postGrabFocus(); }", null);
|
||||
}
|
||||
|
||||
private class RichDocumentsMobileInterface {
|
||||
@JavascriptInterface
|
||||
public void close() {
|
||||
|
|
Loading…
Reference in a new issue