mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: allow tapping on patch card when experimental switch is enabled (#464)
This commit is contained in:
parent
e563049f6a
commit
97d4da568b
@ -53,7 +53,9 @@ class _PatchItemState extends State<PatchItem> {
|
|||||||
: null,
|
: null,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
setState(() {
|
setState(() {
|
||||||
if (widget.isUnsupported) {
|
if (widget.isUnsupported &&
|
||||||
|
!widget._managerAPI.areExperimentalPatchesEnabled()
|
||||||
|
) {
|
||||||
widget.isSelected = false;
|
widget.isSelected = false;
|
||||||
widget.toast.showBottom('patchItem.unsupportedPatchVersion');
|
widget.toast.showBottom('patchItem.unsupportedPatchVersion');
|
||||||
} else {
|
} else {
|
||||||
@ -123,9 +125,8 @@ class _PatchItemState extends State<PatchItem> {
|
|||||||
onChanged: (newValue) {
|
onChanged: (newValue) {
|
||||||
setState(() {
|
setState(() {
|
||||||
if (widget.isUnsupported &&
|
if (widget.isUnsupported &&
|
||||||
widget._managerAPI
|
!widget._managerAPI.areExperimentalPatchesEnabled()
|
||||||
.areExperimentalPatchesEnabled() ==
|
) {
|
||||||
false) {
|
|
||||||
widget.isSelected = false;
|
widget.isSelected = false;
|
||||||
widget.toast
|
widget.toast
|
||||||
.showBottom('patchItem.unsupportedPatchVersion');
|
.showBottom('patchItem.unsupportedPatchVersion');
|
||||||
|
Loading…
Reference in New Issue
Block a user