-
Notifications
You must be signed in to change notification settings - Fork 31
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
DApp bottom sheet entry point #1731
Conversation
import io.novafoundation.nova.core_db.dao.BrowserTabsDao | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
class TabsRepository(private val tabsDao: BrowserTabsDao) { |
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.
This should have an interface in dapp browser api and implementation in dapp browser impl and be provided to root
import android.view.View | ||
import android.view.ViewOutlineProvider | ||
|
||
class RoundCornersOutlineProvider( |
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.
This can be in common
module
} | ||
|
||
dappEntryPoint.isVisible = it > 0 | ||
dappEntryPointText.text = getString(R.string.dapp_entry_point_title, it) |
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.
Shouldnt we display a proper tab name in case there's only one tab?
AlsoI think this formatting logic can go to ViewModel (whether to make entryPointVisible, what text to set to entry point)
class Tab(val id: String) : DAppBrowserPayload | ||
|
||
@Parcelize | ||
class Address(val address: String) : DAppBrowserPayload |
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.
By Address you mean Url?
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
#8696nvaej