Commit 76711635 authored by Valere's avatar Valere

Dismiss widget on permissions cancel

parent dbd26437
......@@ -15,6 +15,7 @@
*/
package im.vector.fragments.roomwidgets
import android.content.DialogInterface
import android.os.Build
import android.os.Parcelable
import android.text.Spannable
......@@ -98,6 +99,11 @@ class RoomWidgetPermissionBottomSheet : VectorBaseBottomSheetDialogFragment() {
dismiss()
}
override fun onCancel(dialog: DialogInterface?) {
super.onCancel(dialog)
sharedActivityViewModel.doFinish()
}
@Parcelize
data class FragArgs(
val widget: Widget,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment