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,
|
||||
onTap: () {
|
||||
setState(() {
|
||||
if (widget.isUnsupported) {
|
||||
if (widget.isUnsupported &&
|
||||
!widget._managerAPI.areExperimentalPatchesEnabled()
|
||||
) {
|
||||
widget.isSelected = false;
|
||||
widget.toast.showBottom('patchItem.unsupportedPatchVersion');
|
||||
} else {
|
||||
@ -123,9 +125,8 @@ class _PatchItemState extends State<PatchItem> {
|
||||
onChanged: (newValue) {
|
||||
setState(() {
|
||||
if (widget.isUnsupported &&
|
||||
widget._managerAPI
|
||||
.areExperimentalPatchesEnabled() ==
|
||||
false) {
|
||||
!widget._managerAPI.areExperimentalPatchesEnabled()
|
||||
) {
|
||||
widget.isSelected = false;
|
||||
widget.toast
|
||||
.showBottom('patchItem.unsupportedPatchVersion');
|
||||
|
Loading…
Reference in New Issue
Block a user