mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-11 13:05:37 +02:00
fix: allow tapping on patch card when experimental switch is enabled (#464)
This commit is contained in:
parent
e563049f6a
commit
97d4da568b
1 changed files with 5 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue