diff --git a/src/musikdroid/app/src/main/java/io/casey/musikcube/remote/ui/home/activity/MainActivity.kt b/src/musikdroid/app/src/main/java/io/casey/musikcube/remote/ui/home/activity/MainActivity.kt index e7ba60f6d..6da1ed5c7 100644 --- a/src/musikdroid/app/src/main/java/io/casey/musikcube/remote/ui/home/activity/MainActivity.kt +++ b/src/musikdroid/app/src/main/java/io/casey/musikcube/remote/ui/home/activity/MainActivity.kt @@ -372,7 +372,7 @@ class MainActivity : BaseActivity() { private fun checkShowSpotlight() { val toolbarButton = findViewById(R.id.action_remote_toggle) - if (toolbarButton != null) { + if (!spotlightDisplayed && toolbarButton != null) { SpotlightView.Builder(this@MainActivity) .introAnimationDuration(400) .enableRevealAnimation(true) @@ -382,7 +382,7 @@ class MainActivity : BaseActivity() { .headingTvSize(24) .headingTvText(getString(R.string.spotlight_playback_mode_title)) .subHeadingTvColor(Color.parseColor("#ffffff")) - .subHeadingTvSize(16) + .subHeadingTvSize(14) .subHeadingTvText(getString(R.string.spotlight_playback_mode_message)) .maskColor(Color.parseColor("#dc000000")) .target(toolbarButton) @@ -393,6 +393,8 @@ class MainActivity : BaseActivity() { .enableDismissAfterShown(true) .usageId(SPOTLIGHT_STREAMING_ID) .show() + + spotlightDisplayed = true } } @@ -568,7 +570,8 @@ class MainActivity : BaseActivity() { } companion object { - private val SPOTLIGHT_STREAMING_ID = "spotlight_streaming_mode" + private val SPOTLIGHT_STREAMING_ID = "streaming_mode" + private var spotlightDisplayed = false private var REPEAT_TO_STRING_ID: MutableMap = mutableMapOf( RepeatMode.None to R.string.button_repeat_off, diff --git a/src/musikdroid/app/src/main/res/values/strings.xml b/src/musikdroid/app/src/main/res/values/strings.xml index 78ac66b5f..d3972faa3 100644 --- a/src/musikdroid/app/src/main/res/values/strings.xml +++ b/src/musikdroid/app/src/main/res/values/strings.xml @@ -140,5 +140,5 @@ playlist \'%s\' deleted could not delete playlist \'%s\' playback mode - want to listen to music from your phone?\nclick here to switch between remote control and streaming modes. + want to listen to music from your phone?\n\nclick here to switch between remote control and streaming playback modes.