Kaydet (Commit) 1060cd84 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Perform setup(Activity) just once

Change-Id: Icf77936c4307f816e85cb840d650a4c958a15995
üst 2a787251
......@@ -124,10 +124,17 @@ public class Bootstrap extends NativeActivity
public static native void delete_byte_buffer_wrapper(long bbw);
static boolean setup_done = false;
// This setup() method is called 1) in apps that use *this* class as their activity from onCreate(),
// and 2) should be called from other kinds of LO code using apps.
public static void setup(Activity activity)
public static synchronized void setup(Activity activity)
{
if (setup_done)
return;
setup_done = true;
String dataDir = null;
ApplicationInfo ai = activity.getApplicationInfo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment