mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/4339 reduce build warnings (https://github.com/mozilla-mobile/fenix/pull/4340)
This commit is contained in:
parent
853ad4d175
commit
49eb339d15
@ -43,7 +43,6 @@ class CollectionCreationUIView(
|
||||
actionEmitter,
|
||||
changesObservable
|
||||
) {
|
||||
|
||||
override val view = LayoutInflater.from(container.context)
|
||||
.inflate(R.layout.component_collection_creation, container, true)
|
||||
|
||||
|
@ -14,7 +14,7 @@ import mozilla.components.browser.domains.autocomplete.ShippedDomainsProvider
|
||||
import mozilla.components.browser.toolbar.BrowserToolbar
|
||||
import mozilla.components.concept.storage.HistoryStorage
|
||||
import mozilla.components.feature.toolbar.ToolbarAutocompleteFeature
|
||||
import mozilla.components.support.ktx.android.content.res.pxToDp
|
||||
import mozilla.components.support.ktx.android.util.dpToPx
|
||||
import org.mozilla.fenix.R
|
||||
import org.mozilla.fenix.ext.getColorFromAttr
|
||||
import org.mozilla.fenix.search.SearchState
|
||||
@ -66,7 +66,7 @@ class ToolbarView(
|
||||
view.apply {
|
||||
editMode()
|
||||
|
||||
elevation = resources.pxToDp(TOOLBAR_ELEVATION_IN_DP).toFloat()
|
||||
elevation = TOOLBAR_ELEVATION_IN_DP.dpToPx(resources.displayMetrics).toFloat()
|
||||
|
||||
setOnUrlCommitListener {
|
||||
interactor.onUrlCommitted(it)
|
||||
|
@ -66,7 +66,6 @@ class TurnOnSyncFragment : Fragment(), AccountObserver {
|
||||
// We could auto-close this tab once we get to the end of the authentication process?
|
||||
// Via an interceptor, perhaps.
|
||||
requireComponents.analytics.metrics.track(Event.SyncAuthSignIn)
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
@ -75,8 +74,6 @@ class TurnOnSyncFragment : Fragment(), AccountObserver {
|
||||
val directions = TurnOnSyncFragmentDirections.actionTurnOnSyncFragmentToPairFragment()
|
||||
Navigation.findNavController(view!!).navigate(directions)
|
||||
requireComponents.analytics.metrics.track(Event.SyncAuthScanPairing)
|
||||
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -245,7 +245,7 @@ class QuickSettingsSheetDialogFragment : AppCompatDialogFragment() {
|
||||
private val sessionObserver = object : Session.Observer {
|
||||
override fun onUrlChanged(session: Session, url: String) {
|
||||
lifecycleScope.launch(Dispatchers.IO) {
|
||||
val host = session.url.toUri()?.host
|
||||
val host = session.url.toUri().host
|
||||
val sitePermissions: SitePermissions? = host?.let {
|
||||
val storage = requireContext().components.core.permissionStorage
|
||||
storage.findSitePermissionsBy(it)
|
||||
|
Loading…
Reference in New Issue
Block a user