Skip to content

Commit 1bed396

Browse files
authored
Update PythonService.java
fix comparison foreground
1 parent 2b5b402 commit 1bed396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android/PythonService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public int onStartCommand(Intent intent, int flags, int startId) {
7979
pythonHome = extras.getString("pythonHome");
8080
pythonPath = extras.getString("pythonPath");
8181
serviceStartAsForeground = (
82-
extras.getString("serviceStartAsForeground") == "true"
82+
extras.getString("serviceStartAsForeground").equals("true")
8383
);
8484
pythonServiceArgument = extras.getString("pythonServiceArgument");
8585
pythonThread = new Thread(this);

0 commit comments

Comments
 (0)