mirror of
https://github.com/SimpleMobileTools/Simple-Voice-Recorder.git
synced 2025-06-05 21:59:31 +02:00
Fix formatting in TrashFragment
This commit is contained in:
@@ -11,8 +11,8 @@ import com.simplemobiletools.voicerecorder.extensions.getAllRecordings
|
|||||||
import com.simplemobiletools.voicerecorder.interfaces.RefreshRecordingsListener
|
import com.simplemobiletools.voicerecorder.interfaces.RefreshRecordingsListener
|
||||||
import com.simplemobiletools.voicerecorder.models.Events
|
import com.simplemobiletools.voicerecorder.models.Events
|
||||||
import com.simplemobiletools.voicerecorder.models.Recording
|
import com.simplemobiletools.voicerecorder.models.Recording
|
||||||
import kotlinx.android.synthetic.main.fragment_trash.view.trash_holder
|
|
||||||
import kotlinx.android.synthetic.main.fragment_trash.view.trash_fastscroller
|
import kotlinx.android.synthetic.main.fragment_trash.view.trash_fastscroller
|
||||||
|
import kotlinx.android.synthetic.main.fragment_trash.view.trash_holder
|
||||||
import kotlinx.android.synthetic.main.fragment_trash.view.trash_list
|
import kotlinx.android.synthetic.main.fragment_trash.view.trash_list
|
||||||
import kotlinx.android.synthetic.main.fragment_trash.view.trash_placeholder
|
import kotlinx.android.synthetic.main.fragment_trash.view.trash_placeholder
|
||||||
import org.greenrobot.eventbus.EventBus
|
import org.greenrobot.eventbus.EventBus
|
||||||
@@ -74,8 +74,7 @@ class TrashFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerF
|
|||||||
|
|
||||||
val adapter = getRecordingsAdapter()
|
val adapter = getRecordingsAdapter()
|
||||||
if (adapter == null) {
|
if (adapter == null) {
|
||||||
TrashAdapter(context as SimpleActivity, recordings, this, trash_list)
|
TrashAdapter(context as SimpleActivity, recordings, this, trash_list).apply {
|
||||||
.apply {
|
|
||||||
trash_list.adapter = this
|
trash_list.adapter = this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user