Check for calls to FlutterMain.ensureInitializationComplete before startInitialization (flutter/engine#5614)
This commit is contained in:
@@ -187,6 +187,9 @@ public class FlutterMain {
|
||||
if (Looper.myLooper() != Looper.getMainLooper()) {
|
||||
throw new IllegalStateException("ensureInitializationComplete must be called on the main thread");
|
||||
}
|
||||
if (sSettings == null) {
|
||||
throw new IllegalStateException("ensureInitializationComplete must be called after startInitialization");
|
||||
}
|
||||
if (sInitialized) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user