summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-03-03 23:35:01 +0200
committerTor Lillqvist <tml@iki.fi>2013-03-03 23:38:08 +0200
commit70e8c341af0c6c6f2568a75326b6ee1d3df8145a (patch)
tree339844ac368a03147e3e601e1441a8e1b4a36a22 /android
parent7b7c7b03df24097b012a20227124811ac555a1f6 (diff)
Android "desktop" app: Simplify bootstrapping on the Java side
No need to call defaultBootstrap_InitialComponentContext() etc on the Java side in this app. The full SVMain() etc will do all that anyway. Change-Id: I555ccd8efbd0260a72fa5904bb6dcd255eed37d4
Diffstat (limited to 'android')
-rw-r--r--android/experimental/desktop/src/org/libreoffice/experimental/desktop/Desktop.java38
1 files changed, 3 insertions, 35 deletions
diff --git a/android/experimental/desktop/src/org/libreoffice/experimental/desktop/Desktop.java b/android/experimental/desktop/src/org/libreoffice/experimental/desktop/Desktop.java
index baa36dc37c48..8b46be740f49 100644
--- a/android/experimental/desktop/src/org/libreoffice/experimental/desktop/Desktop.java
+++ b/android/experimental/desktop/src/org/libreoffice/experimental/desktop/Desktop.java
@@ -33,8 +33,6 @@ import android.view.inputmethod.InputConnection;
import android.view.inputmethod.InputMethodManager;
import com.sun.star.awt.Key;
-import com.sun.star.lang.XMultiComponentFactory;
-import com.sun.star.uno.XComponentContext;
import org.libreoffice.android.Bootstrap;
@@ -59,47 +57,17 @@ public class Desktop
*/
class BootstrapContext
{
- public long timingOverhead;
- public XComponentContext componentContext;
- public XMultiComponentFactory mcf;
}
BootstrapContext bootstrapContext;
- Bundle extras;
-
- // FIXME: we should prolly manage a bitmap buffer here and give it to
- // VCL to render into ... and pull the WM/stacking pieces up into the Java ...
- // [ perhaps ;-]
- // how can we get an event to "create a window" - need a JNI callback I guess ...
private void initBootstrapContext()
{
- try
- {
- bootstrapContext = new BootstrapContext();
-
- long t0 = System.currentTimeMillis();
- long t1 = System.currentTimeMillis();
- bootstrapContext.timingOverhead = t1 - t0;
-
- Bootstrap.setup(this);
-
- // Avoid all the old style OSL_TRACE calls especially in vcl
- Bootstrap.putenv("SAL_LOG=+WARN+INFO");
-
- bootstrapContext.componentContext = com.sun.star.comp.helper.Bootstrap.defaultBootstrap_InitialComponentContext();
+ bootstrapContext = new BootstrapContext();
- Log.i(TAG, "context is" + (bootstrapContext.componentContext!=null ? " not" : "") + " null");
+ Bootstrap.setup(this);
- bootstrapContext.mcf = bootstrapContext.componentContext.getServiceManager();
-
- Log.i(TAG, "mcf is" + (bootstrapContext.mcf!=null ? " not" : "") + " null");
- }
- catch (Exception e)
- {
- e.printStackTrace(System.err);
- finish();
- }
+ Bootstrap.putenv("SAL_LOG=+WARN+INFO");
}
@Override public void onCreate(Bundle savedInstanceState)