mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-03 23:15:31 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/9913, For https://github.com/mozilla-mobile/fenix/issues/9914: Remove button when disabling it.
Setting visibility to GONE allows clicks to parent view in that space.
This commit is contained in:
parent
97304fda03
commit
0ecb2893f0
@ -17,8 +17,8 @@ import mozilla.components.browser.menu.item.SimpleBrowserMenuItem
|
|||||||
import mozilla.components.feature.tab.collections.TabCollection
|
import mozilla.components.feature.tab.collections.TabCollection
|
||||||
import org.mozilla.fenix.R
|
import org.mozilla.fenix.R
|
||||||
import org.mozilla.fenix.ext.getIconColor
|
import org.mozilla.fenix.ext.getIconColor
|
||||||
import org.mozilla.fenix.ext.hideAndDisable
|
|
||||||
import org.mozilla.fenix.ext.increaseTapArea
|
import org.mozilla.fenix.ext.increaseTapArea
|
||||||
|
import org.mozilla.fenix.ext.removeAndDisable
|
||||||
import org.mozilla.fenix.ext.showAndEnable
|
import org.mozilla.fenix.ext.showAndEnable
|
||||||
import org.mozilla.fenix.home.sessioncontrol.CollectionInteractor
|
import org.mozilla.fenix.home.sessioncontrol.CollectionInteractor
|
||||||
import org.mozilla.fenix.theme.ThemeManager
|
import org.mozilla.fenix.theme.ThemeManager
|
||||||
@ -83,8 +83,8 @@ class CollectionViewHolder(
|
|||||||
view.collection_share_button.showAndEnable()
|
view.collection_share_button.showAndEnable()
|
||||||
view.collection_overflow_button.showAndEnable()
|
view.collection_overflow_button.showAndEnable()
|
||||||
} else {
|
} else {
|
||||||
view.collection_share_button.hideAndDisable()
|
view.collection_share_button.removeAndDisable()
|
||||||
view.collection_overflow_button.hideAndDisable()
|
view.collection_overflow_button.removeAndDisable()
|
||||||
}
|
}
|
||||||
|
|
||||||
view.collection_icon.colorFilter = createBlendModeColorFilterCompat(
|
view.collection_icon.colorFilter = createBlendModeColorFilterCompat(
|
||||||
|
Loading…
Reference in New Issue
Block a user