siavash79 / PixelXpert

mixed Xposed+Magisk module for customization of Google Pixel rom of Android 12+
GNU General Public License v3.0
1.75k stars 107 forks source link

[Bug] Loss of functionality in canary-363 for long press torch feature #847

Closed bdr99 closed 3 months ago

bdr99 commented 3 months ago

Describe the issue

Cannot achieve the same behavior that was possible from canary-323 to canary-362 (see below).

Steps to reproduce

From canary-323 to canary-362, the "Long press Power button for torch" feature (when the screen is on) worked like this:

In canary-363, if we set the "Long press power button" action to "Toggle torch", which seems to be the closest equivalent to the setting that existed in previous versions, it works like this instead:

There seems to be no way to achieve the previous functionality of performing the default action when the torch is already off.

Steps to reproduce

  1. In Miscellaneous -> Remap physical buttons, under "While screen is on", set "Long press power button" to "Toggle torch".
  2. With the screen on and the torch off, long press the power button.

Expected behavior

There should be a way to configure a long press to turn off the torch if it is on, but otherwise perform the default long press action, as was possible in all versions from canary-323 to canary-362.

Your device setup (Please take some time to give correct information here)

Logs

LSPosed_2024-06-05T23_33_38.905911.zip

EleoXDA commented 3 months ago

That is intended. You literally enabled "TOGGLE TORCH" when "WHILE SCREEN IS ON" for power button?

What else did you expect?

It TOGGLES torch. As its name says. Toggle means: turn on if it is off, turn off if it is on.

bdr99 commented 3 months ago

@EleoXDA I agree that the current behavior matches the description of the setting. That wasn't my issue.

My issue is just that something that was possible in canary-362 is no longer possible in canary-363. I expected to be able to recreate the old behavior through some other combination of settings.

gygabyte017 commented 3 months ago

@bdr99 it keeps working for me, even if I set any action on long power button press on screen on, if the torch is on that action is overridden by the action "power torch off".

EleoXDA commented 3 months ago

@EleoXDA I agree that the current behavior matches the description of the setting. That wasn't my issue.

My issue is just that something that was possible in canary-362 is no longer possible in canary-363. I expected to be able to recreate the old behavior through some other combination of settings.

Then your description is wrong. You reported it as bug, but should have been a feature request, as this is not a bug per se