mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-02 11:58:27 +00:00
A few spotlight tweaks after testing on physical hardware.
This commit is contained in:
parent
a6d0f1d351
commit
fb869e27b3
@ -372,7 +372,7 @@ class MainActivity : BaseActivity() {
|
||||
|
||||
private fun checkShowSpotlight() {
|
||||
val toolbarButton = findViewById<View>(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<RepeatMode, Int> = mutableMapOf(
|
||||
RepeatMode.None to R.string.button_repeat_off,
|
||||
|
@ -140,5 +140,5 @@
|
||||
<string name="playlist_deleted">playlist \'%s\' deleted</string>
|
||||
<string name="playlist_not_deleted">could not delete playlist \'%s\'</string>
|
||||
<string name="spotlight_playback_mode_title">playback mode</string>
|
||||
<string name="spotlight_playback_mode_message">want to listen to music from your phone?\nclick here to switch between remote control and streaming modes.</string>
|
||||
<string name="spotlight_playback_mode_message">want to listen to music from your phone?\n\nclick here to switch between remote control and streaming playback modes.</string>
|
||||
</resources>
|
||||
|
Loading…
Reference in New Issue
Block a user