Minor fixes
Fix some ordering & display issues. Also slightly increased the play/pause icons size on PlaybackFragment.
This commit is contained in:
@@ -19,6 +19,7 @@ import org.oxycblt.auxio.music.BaseModel
|
||||
import org.oxycblt.auxio.music.Genre
|
||||
import org.oxycblt.auxio.music.Song
|
||||
import org.oxycblt.auxio.ui.ActionMenu
|
||||
import org.oxycblt.auxio.ui.fixAnimInfoLeak
|
||||
import org.oxycblt.auxio.ui.getSpans
|
||||
import org.oxycblt.auxio.ui.requireCompatActivity
|
||||
|
||||
@@ -99,6 +100,12 @@ class LibraryFragment : Fragment() {
|
||||
libraryModel.updateNavigationStatus(false)
|
||||
}
|
||||
|
||||
override fun onDestroyView() {
|
||||
super.onDestroyView()
|
||||
|
||||
fixAnimInfoLeak()
|
||||
}
|
||||
|
||||
/**
|
||||
* Navigate to an item
|
||||
* @param baseModel The item that should be navigated to.
|
||||
|
||||
@@ -109,11 +109,9 @@ class CompactPlaybackFragment : Fragment() {
|
||||
} else {
|
||||
// Use static icons on the first firing of this observer so that the icons
|
||||
// don't animate on startup, which looks weird.
|
||||
if (it) {
|
||||
binding.playbackControls.setImageResource(R.drawable.ic_pause_large)
|
||||
} else {
|
||||
binding.playbackControls.setImageResource(R.drawable.ic_play_large)
|
||||
}
|
||||
binding.playbackControls.setImageResource(
|
||||
if (it) R.drawable.ic_pause_large else R.drawable.ic_play_large
|
||||
)
|
||||
|
||||
playbackModel.enableAnimation()
|
||||
}
|
||||
|
||||
@@ -272,7 +272,7 @@ class SettingsManager private constructor(context: Context) :
|
||||
const val AT_END_LOOP = "LOOP"
|
||||
|
||||
/**
|
||||
* Stop at the end. Similar to phonograph.
|
||||
* Stop at the end. Similar to Phonograph.
|
||||
*/
|
||||
const val AT_END_STOP = "STOP"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user