mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-29 04:55:15 +00:00
24 lines
962 B
Kotlin
24 lines
962 B
Kotlin
package org.thoughtcrime.securesms.loki
|
|
|
|
import android.os.Bundle
|
|
import android.support.design.widget.BottomSheetDialogFragment
|
|
import android.view.LayoutInflater
|
|
import android.view.View
|
|
import android.view.ViewGroup
|
|
import kotlinx.android.synthetic.main.fragment_device_list_bottom_sheet.*
|
|
import network.loki.messenger.R
|
|
|
|
public class DeviceListBottomSheetFragment : BottomSheetDialogFragment() {
|
|
var onEditTapped: (() -> Unit)? = null
|
|
var onUnlinkTapped: (() -> Unit)? = null
|
|
|
|
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
|
return inflater.inflate(R.layout.fragment_device_list_bottom_sheet, container, false)
|
|
}
|
|
|
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
|
super.onViewCreated(view, savedInstanceState)
|
|
editDisplayNameText.setOnClickListener { onEditTapped?.invoke() }
|
|
unlinkDeviceText.setOnClickListener { onUnlinkTapped?.invoke() }
|
|
}
|
|
} |