Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_boost_1.22.4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢冠章
flutter_boost_1.22.4
Commits
8186e987
Commit
8186e987
authored
Mar 20, 2020
by
Firewayer
Committed by
Luke
Mar 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git pick
7c93c172
parent
6e9b0a6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
android/src/main/java/com/idlefish/flutterboost/FlutterBoost.java
...src/main/java/com/idlefish/flutterboost/FlutterBoost.java
+9
-2
No files found.
android/src/main/java/com/idlefish/flutterboost/FlutterBoost.java
View file @
8186e987
...
@@ -6,6 +6,9 @@ import android.app.Application;
...
@@ -6,6 +6,9 @@ import android.app.Application;
import
android.content.Context
;
import
android.content.Context
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.support.annotation.NonNull
;
import
android.support.annotation.NonNull
;
import
android.os.Debug
;
import
androidx.annotation.NonNull
;
import
com.idlefish.flutterboost.interfaces.*
;
import
com.idlefish.flutterboost.interfaces.*
;
import
io.flutter.Log
;
import
io.flutter.Log
;
import
io.flutter.embedding.android.FlutterView
;
import
io.flutter.embedding.android.FlutterView
;
...
@@ -30,6 +33,7 @@ public class FlutterBoost {
...
@@ -30,6 +33,7 @@ public class FlutterBoost {
private
Activity
mCurrentActiveActivity
;
private
Activity
mCurrentActiveActivity
;
private
boolean
mEnterActivityCreate
=
false
;
private
boolean
mEnterActivityCreate
=
false
;
static
FlutterBoost
sInstance
=
null
;
static
FlutterBoost
sInstance
=
null
;
private
static
boolean
sInit
;
private
long
FlutterPostFrameCallTime
=
0
;
private
long
FlutterPostFrameCallTime
=
0
;
private
Application
.
ActivityLifecycleCallbacks
mActivityLifecycleCallbacks
;
private
Application
.
ActivityLifecycleCallbacks
mActivityLifecycleCallbacks
;
...
@@ -50,7 +54,10 @@ public class FlutterBoost {
...
@@ -50,7 +54,10 @@ public class FlutterBoost {
}
}
public
void
init
(
Platform
platform
)
{
public
void
init
(
Platform
platform
)
{
if
(
sInit
){
Debuger
.
log
(
"FlutterBoost is alread inited. Do not init twice"
);
return
;
}
mPlatform
=
platform
;
mPlatform
=
platform
;
mManager
=
new
FlutterViewContainerManager
();
mManager
=
new
FlutterViewContainerManager
();
...
@@ -150,7 +157,7 @@ public class FlutterBoost {
...
@@ -150,7 +157,7 @@ public class FlutterBoost {
doInitialFlutter
();
doInitialFlutter
();
}
}
sInit
=
true
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment