-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/fga/fix some voip issues #2830
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 static remarks
* As long as the request succeed, it'll check only once by session. | ||
*/ | ||
@SessionScope | ||
class PSTNProtocolChecker @Inject internal constructor(private val taskExecutor: TaskExecutor, |
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.
no interface
to hide implementation?
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.
Yes I can, but I try to remove interfaces when it's not really necessary as we already have a lots... Fields are private and constructor is internal
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.
Yes, I'd seen the internal constructor. OK, thanks!
|
||
private var alreadyChecked = AtomicBoolean(false) | ||
|
||
private val pstnSupportListeners = emptyList<Listener>().toMutableList() |
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.
Use mutableListOf<Listener>()
?
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.
Yep thanks for the catch
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.
I'll commit the cleanup
@EpoxyModelClass(layout = R.layout.item_empty) | ||
abstract class EmptyItem : VectorEpoxyModel<EmptyItem.Holder>() { | ||
class Holder : VectorEpoxyHolder() | ||
interface IsEventItem { |
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.
What do you mean by IsEventItem
?
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's an item which holds one or several event ids. If you have a better name suggestion, because I wasn't inspired...
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.
I propose ItemWithEvents
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.
LGTM after my 3 commits :)
This PR should fix the crash on the timeline related to hidden tiles.
It also moves the PSTNProtocolCheck on the SDK side as it's bound to the current session.