diff --git a/pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android/PythonService.java b/pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android/PythonService.java index 6d951e8525..85b26f4013 100644 --- a/pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android/PythonService.java +++ b/pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android/PythonService.java @@ -79,7 +79,7 @@ public int onStartCommand(Intent intent, int flags, int startId) { pythonHome = extras.getString("pythonHome"); pythonPath = extras.getString("pythonPath"); serviceStartAsForeground = ( - extras.getString("serviceStartAsForeground") == "true" + extras.getString("serviceStartAsForeground").equals("true") ); pythonServiceArgument = extras.getString("pythonServiceArgument"); pythonThread = new Thread(this);