Compare commits

...

3 Commits

Author SHA1 Message Date
Ushie
6b999b0a0c build: bump version to v0.0.39 2022-11-02 00:06:29 +03:00
oSumAtrIX
b00d2d16d4 feat: simplify logging (#305)
Co-authored-by: Ushie <ushiekane@gmail.com>
2022-11-02 00:02:51 +03:00
Boris M
97d4da568b fix: allow tapping on patch card when experimental switch is enabled (#464) 2022-11-02 00:02:33 +03:00
3 changed files with 8 additions and 7 deletions

View File

@@ -180,7 +180,7 @@ class MainActivity : FlutterActivity() {
patcher.addPatches(patches) patcher.addPatches(patches)
patcher.executePatches().forEach { (patch, res) -> patcher.executePatches().forEach { (patch, res) ->
if (res.isSuccess) { if (res.isSuccess) {
val msg = "[success] $patch" val msg = "Applied $patch"
handler.post { handler.post {
installerChannel.invokeMethod( installerChannel.invokeMethod(
"update", "update",
@@ -193,7 +193,7 @@ class MainActivity : FlutterActivity() {
} }
return@forEach return@forEach
} }
val msg = "[error] $patch:" + res.exceptionOrNull()!!.printStackTrace() val msg = "$patch failed.\nError:\n" + res.exceptionOrNull()!!.printStackTrace()
handler.post { handler.post {
installerChannel.invokeMethod( installerChannel.invokeMethod(
"update", "update",

View File

@@ -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');

View File

@@ -4,7 +4,7 @@ homepage: https://github.com/revanced/revanced-manager
publish_to: 'none' publish_to: 'none'
version: 0.0.38+38 version: 0.0.39+39
environment: environment:
sdk: ">=2.17.5 <3.0.0" sdk: ">=2.17.5 <3.0.0"