launch QueueActivity on clicking at the Next Track bar
This commit is contained in:
parent
c08c88a1de
commit
c53c4a8b50
4 changed files with 33 additions and 0 deletions
|
@ -119,6 +119,10 @@
|
|||
android:theme="@style/TranslucentTheme"
|
||||
android:parentActivityName=".activities.MainActivity" />
|
||||
|
||||
<activity
|
||||
android:name=".activities.QueueActivity"
|
||||
android:parentActivityName=".activities.TrackActivity" />
|
||||
|
||||
<service
|
||||
android:name=".services.MusicService"
|
||||
android:exported="false">
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
package com.simplemobiletools.musicplayer.activities
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.Menu
|
||||
import com.simplemobiletools.musicplayer.R
|
||||
|
||||
class QueueActivity : SimpleActivity() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_queue)
|
||||
}
|
||||
|
||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||
updateMenuItemColors(menu)
|
||||
return super.onCreateOptionsMenu(menu)
|
||||
}
|
||||
}
|
|
@ -19,6 +19,7 @@ import com.bumptech.glide.request.RequestOptions
|
|||
import com.google.gson.Gson
|
||||
import com.google.gson.reflect.TypeToken
|
||||
import com.simplemobiletools.commons.extensions.*
|
||||
import com.simplemobiletools.commons.helpers.mydebug
|
||||
import com.simplemobiletools.musicplayer.R
|
||||
import com.simplemobiletools.musicplayer.extensions.config
|
||||
import com.simplemobiletools.musicplayer.extensions.sendIntent
|
||||
|
@ -61,6 +62,9 @@ class TrackActivity : SimpleActivity() {
|
|||
}
|
||||
|
||||
next_track_holder.background = ColorDrawable(config.backgroundColor)
|
||||
next_track_holder.setOnClickListener {
|
||||
startActivity(Intent(applicationContext, QueueActivity::class.java))
|
||||
}
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
|
|
7
app/src/main/res/layout/activity_queue.xml
Normal file
7
app/src/main/res/layout/activity_queue.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/activity_queue_holder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in a new issue