Lint fixes, likely no visible changes
This commit is contained in:
@@ -37,7 +37,7 @@ class TrackSearchAdapter(context: Context) :
|
||||
} else {
|
||||
holder = v.tag as TrackSearchHolder
|
||||
}
|
||||
holder.onSetValues(track)
|
||||
holder.onSetValues(track!!)
|
||||
return v
|
||||
}
|
||||
|
||||
|
||||
+4
-4
@@ -62,15 +62,15 @@ class PreMigrationController(bundle: Bundle? = null) : BaseController<PreMigrati
|
||||
ourAdapter.itemTouchHelperCallback = null // Reset adapter touch adapter to fix drag after rotation
|
||||
ourAdapter.isHandleDragEnabled = true
|
||||
dialog = null
|
||||
val fabBaseMarginBottom = binding.fab?.marginBottom ?: 0
|
||||
val fabBaseMarginBottom = binding.fab.marginBottom
|
||||
binding.recycler.doOnApplyWindowInsets { v, insets, padding ->
|
||||
|
||||
binding.fab?.updateLayoutParams<ViewGroup.MarginLayoutParams> {
|
||||
binding.fab.updateLayoutParams<ViewGroup.MarginLayoutParams> {
|
||||
bottomMargin = fabBaseMarginBottom + insets.systemWindowInsetBottom
|
||||
}
|
||||
// offset the recycler by the fab's inset + some inset on top
|
||||
v.updatePaddingRelative(bottom = padding.bottom + (binding.fab?.marginBottom ?: 0) +
|
||||
fabBaseMarginBottom + (binding.fab?.height ?: 0))
|
||||
v.updatePaddingRelative(bottom = padding.bottom + (binding.fab.marginBottom) +
|
||||
fabBaseMarginBottom + (binding.fab.height))
|
||||
}
|
||||
|
||||
binding.fab.setOnClickListener {
|
||||
|
||||
+1
-1
@@ -84,7 +84,7 @@ class MigrationProcessAdapter(
|
||||
fun removeManga(position: Int) {
|
||||
val item = getItem(position) ?: return
|
||||
menuItemListener.removeManga(item)
|
||||
item?.manga?.migrationJob?.cancel()
|
||||
item.manga.migrationJob.cancel()
|
||||
removeItem(position)
|
||||
items = currentItems
|
||||
sourceFinished()
|
||||
|
||||
Reference in New Issue
Block a user