mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
adapt to rebase by remove the migrated fastscroller code
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
1b29038dbd
commit
04a7f75f78
@ -55,7 +55,6 @@ import com.nextcloud.talk.utils.bundle.BundleKeys.KEY_USER_ENTITY
|
|||||||
import com.nextcloud.talk.utils.database.user.UserUtils
|
import com.nextcloud.talk.utils.database.user.UserUtils
|
||||||
import eu.davidea.flexibleadapter.FlexibleAdapter
|
import eu.davidea.flexibleadapter.FlexibleAdapter
|
||||||
import eu.davidea.flexibleadapter.common.SmoothScrollLinearLayoutManager
|
import eu.davidea.flexibleadapter.common.SmoothScrollLinearLayoutManager
|
||||||
import eu.davidea.flexibleadapter.items.IFlexible
|
|
||||||
import net.orange_box.storebox.listeners.OnPreferenceValueChangedListener
|
import net.orange_box.storebox.listeners.OnPreferenceValueChangedListener
|
||||||
import okhttp3.OkHttpClient
|
import okhttp3.OkHttpClient
|
||||||
import org.parceler.Parcel
|
import org.parceler.Parcel
|
||||||
@ -263,19 +262,7 @@ abstract class BrowserController(args: Bundle) :
|
|||||||
binding.recyclerView.layoutManager = layoutManager
|
binding.recyclerView.layoutManager = layoutManager
|
||||||
binding.recyclerView.setHasFixedSize(true)
|
binding.recyclerView.setHasFixedSize(true)
|
||||||
binding.recyclerView.adapter = adapter
|
binding.recyclerView.adapter = adapter
|
||||||
adapter!!.fastScroller = binding.fastScrollerContainer.fastScroller
|
|
||||||
adapter!!.addListener(this)
|
adapter!!.addListener(this)
|
||||||
binding.fastScrollerContainer.fastScroller.setBubbleTextCreator { position: Int ->
|
|
||||||
val abstractFlexibleItem: IFlexible<*> = adapter!!.getItem(position)!!
|
|
||||||
if (abstractFlexibleItem is BrowserFileItem) {
|
|
||||||
return@setBubbleTextCreator (adapter!!.getItem(position) as BrowserFileItem)
|
|
||||||
.model
|
|
||||||
.getDisplayName()[0]
|
|
||||||
.toString()
|
|
||||||
} else {
|
|
||||||
return@setBubbleTextCreator ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
binding.swipeRefreshList.setOnRefreshListener(this)
|
binding.swipeRefreshList.setOnRefreshListener(this)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user