info: retire info documents
Retire the old information documents in favor of the new wiki.
This commit is contained in:
@@ -54,6 +54,8 @@ import org.oxycblt.auxio.util.systemBarInsetsCompat
|
||||
*
|
||||
* TODO: Standardize companion object usage
|
||||
*
|
||||
* TODO: Standardize callback/listener naming.
|
||||
*
|
||||
* @author Alexander Capehart (OxygenCobalt)
|
||||
*/
|
||||
class MainActivity : AppCompatActivity() {
|
||||
|
||||
@@ -244,7 +244,6 @@ class AlbumDetailFragment : ListFragment<FragmentDetailBinding>(), AlbumDetailAd
|
||||
binding.detailRecycler.post {
|
||||
// Use a custom smooth scroller that will settle the item in the middle of
|
||||
// the screen rather than the end.
|
||||
// TODO: Can I apply this to the queue view?
|
||||
val centerSmoothScroller =
|
||||
object : LinearSmoothScroller(context) {
|
||||
init {
|
||||
|
||||
@@ -284,7 +284,7 @@ class PlaybackViewModel(application: Application) :
|
||||
* @param song The [Song] to add.
|
||||
*/
|
||||
fun playNext(song: Song) {
|
||||
// TODO: Queue additions without a playing song should map to queued items
|
||||
// TODO: Queue additions without a playing song should map to playing items
|
||||
// (impossible until queue rework)
|
||||
playbackManager.playNext(song)
|
||||
}
|
||||
|
||||
@@ -88,6 +88,7 @@ class QueueFragment : ViewBindingFragment<FragmentQueueBinding>(), QueueAdapter.
|
||||
queueModel.finishReplace()
|
||||
|
||||
// If requested, scroll to a new item (occurs when the index moves)
|
||||
// TODO: Scroll to center/top instead of bottom
|
||||
val scrollTo = queueModel.scrollTo
|
||||
if (scrollTo != null) {
|
||||
// Do not scroll to indices that are in the currently visible range. As that would
|
||||
@@ -102,7 +103,7 @@ class QueueFragment : ViewBindingFragment<FragmentQueueBinding>(), QueueAdapter.
|
||||
}
|
||||
queueModel.finishScrollTo()
|
||||
|
||||
// Update currently playing item
|
||||
// Update position in list (and thus past/future items)
|
||||
queueAdapter.setPosition(index, isPlaying)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,7 +165,7 @@ class Settings(private val context: Context, private val callback: Callback? = n
|
||||
unlikelyToBeNull(callback).onSettingChanged(key)
|
||||
}
|
||||
|
||||
/** TODO: Remove this */
|
||||
/** TODO: Rework this */
|
||||
interface Callback {
|
||||
fun onSettingChanged(key: String)
|
||||
}
|
||||
|
||||
@@ -73,8 +73,7 @@ constructor(context: Context, attrs: AttributeSet? = null, @AttrRes defStyleAttr
|
||||
* @param recycler [RecyclerView] to expand with, or null if one is currently unavailable.
|
||||
*/
|
||||
fun expandWithRecycler(recycler: RecyclerView?) {
|
||||
// TODO: Is it possible to use liftOnScrollTargetViewId to avoid the [RecyclerView]
|
||||
// argument?
|
||||
// TODO: Is it possible to use liftOnScrollTargetViewId to avoid the RecyclerView arg?
|
||||
setExpanded(true)
|
||||
recycler?.let { addOnOffsetChangedListener(ExpansionHackListener(it)) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user