mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
grab focus on resume
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
7a2ab86a88
commit
df6f4cf9d2
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