-
Notifications
You must be signed in to change notification settings - Fork 395
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few remarks
} | ||
return Unit.INSTANCE; | ||
}); | ||
bs.show(getSupportFragmentManager(), "JitsyPerm"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: 'JitsiPerm' with a "i" :)
@@ -65,7 +65,11 @@ class WidgetActivity : VectorAppCompatActivity() { | |||
//already there | |||
} else { | |||
RoomWidgetPermissionBottomSheet | |||
.newInstance(viewModel.session!!.myUserId, viewModel.widget) | |||
.newInstance(viewModel.session!!.myUserId, viewModel.widget).apply { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this code is robust to screen rotation, will the bottomSheet is displayed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
worst case you have to tap again on the video conf banner
|
||
private val sharedActivityViewModel: RoomWidgetViewModel by activityViewModel() | ||
var onFinish: ((Boolean) -> Unit)? = null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sharedViewModel was better, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes the bottom sheet more generic, can be used in other activity easier
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, thanks for the update
@@ -1772,7 +1772,7 @@ private void launchJitsiActivity(Widget widget, boolean aIsVideoCall) { | |||
|
|||
String domain = UrlUtilKt.extractDomain(JitsiCallActivity.JITSI_SERVER_URL); | |||
if (domain == null) return; //display a toast? | |||
boolean isAllowed = mSession.getIntegrationManager().isVideoConfDomainAllowed(domain); | |||
boolean isAllowed = mSession.getIntegrationManager().isNativeWidgetAllowed("jitsi", domain); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Fixes #3391
Depends on matrix-org/matrix-android-sdk#514
Pull Request Checklist