Skip to content

Commit

Permalink
Merge pull request #28 from makromusic/fix-null-problem-to-intent
Browse files Browse the repository at this point in the history
fix: Fix null problem to intent.
  • Loading branch information
qiuxiang authored Jul 21, 2024
2 parents 0ea76a2 + c737c59 commit 91d2d1a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ class WindowService : android.app.Service() {
androidWindow.updateLayout()
}

override fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int {
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
if(intent == null) return super.onStartCommand()

if (!running) {
engine = FlutterEngine(application)
FlutterEngineCache.getInstance().put(engineId, engine)
Expand Down

0 comments on commit 91d2d1a

Please sign in to comment.