diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a65f67788..d5c61525b 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -141,7 +141,7 @@ android:name=".tasker.StartConfigBasicAction" android:exported="true" android:icon="@mipmap/ic_launcher" - android:label="My Tasker Action"> + android:label="Start Auxio"> diff --git a/app/src/main/java/org/oxycblt/auxio/tasker/Start.kt b/app/src/main/java/org/oxycblt/auxio/tasker/Start.kt index 0191e0133..9e27486c6 100644 --- a/app/src/main/java/org/oxycblt/auxio/tasker/Start.kt +++ b/app/src/main/java/org/oxycblt/auxio/tasker/Start.kt @@ -50,8 +50,8 @@ class StartActionHelper(config: TaskerPluginConfig) : override fun addToStringBlurb(input: TaskerInput, blurbBuilder: StringBuilder) { blurbBuilder.append( "Starts the Auxio Service. This will block until the service is fully initialized." + - "You must start active playback/foreground state after this or Auxio may" + - "crash.") + "You must start active playback/foreground state after this or Auxio may" + + "crash.") } } @@ -70,10 +70,7 @@ class StartConfigBasicAction : Activity(), TaskerPluginConfigNoInput { class StartActionRunner : TaskerPluginRunnerActionNoOutputOrInput() { override fun run(context: Context, input: TaskerInput): TaskerPluginResult { ContextCompat.startForegroundService(context, Intent(context, AuxioService::class.java)) - while (!serviceRunning) { - Thread.sleep(100) - } - + while (!serviceRunning) {} return TaskerPluginResultSucess() } }