From e8d8c1aaa8913b51e138b1c2ee6b468cbc00576a Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Sat, 16 May 2015 13:57:23 -0700 Subject: [PATCH] public org.domokit.sky.shell.SkyMain.ensureInitialized() It's useful to be able to call org.domokit.sky.shell.SkyMain.ensureInitialized() when implementing custom Android Activities. This commit makes ensureInitialized() public for this purpose. Unrelated changes: Added curly braces to pass PRESUBMIT check. Add Lex Berezhny to AUTHORS file in order to be able to commit fixes (and pass PRESUBMIT check). Patch by Lex Berezhny . R=abarth@chromium.org Review URL: https://codereview.chromium.org/1135953004 --- engine/src/flutter/shell/org/domokit/sky/shell/SkyMain.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/shell/org/domokit/sky/shell/SkyMain.java b/engine/src/flutter/shell/org/domokit/sky/shell/SkyMain.java index 78cd7347c0..9966979384 100644 --- a/engine/src/flutter/shell/org/domokit/sky/shell/SkyMain.java +++ b/engine/src/flutter/shell/org/domokit/sky/shell/SkyMain.java @@ -25,9 +25,10 @@ public class SkyMain { /** * Initializes the native system. **/ - static void ensureInitialized(Context applicationContext) { - if (sInitialized) + public static void ensureInitialized(Context applicationContext) { + if (sInitialized) { return; + } try { ResourceExtractor resourceExtractor = ResourceExtractor.get(applicationContext); resourceExtractor.startExtractingResources();