grab focus on resume

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-05-31 07:43:04 +02:00
parent 7a2ab86a88
commit df6f4cf9d2
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -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() {