trouble

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
Autumn-Leigh
Posts: 67
Joined: 15 Mar 2018 19:23
Location: UK
Contact:

trouble

Post by Autumn-Leigh » 17 Apr 2018 18:08

So, I am having trouble with the magnetic feild. when i shut the case it locks the screen, which is brilliant. but when i flip the top of the case behind it to use it , it still picks it up and locks it, what can i do to stop it please? iv tried proximity and it just glitches, and light.
YouTube Channel - https://youtu.be/fui3RO9EmNU
If anyone wants a shoutout, or has a flow they want me to do, be it theirs or a new one, let me know :)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: trouble

Post by Desmanto » 18 Apr 2018 06:28

It is a known problem for flipcase. Usually non original flipcase in samsung will produce this kind of problem. Their magnetic sensor value is not within the range of the standard. But this value will be different from one OEM to another. So we have to check the proximity too to see if the flipcase is covering the front or simply flipped at the back (not covering the proximity)

We have to filter the event. We can't prevent the event triggering the flow, but we can protect it so unwanted event can't go thru the main execution. Let's translate the things you want to simple wordings.

When : Flipcase is close (magnetic sensor to certain value)
While : If flipcase is covering front side (proximity sensor near)
Do : Lock device

When this translated to flow,
Trigger : Magnetic Sensor
Condition : Proximity sensor near
Action (True) : Lock Device

What happens is when the flipcase is closed to the front and covering the proximity sensor; flow triggered (by magnetic sensor). Check if proximity is near, of course it is. So execute action lock device.

When you open the flipcase, and fold it to the back, flow still got triggered (by magnetic sensor). Check if proximity is near, it is not, since the flipcase is folded to the back. So the flow stopped there, doing nothing even though the flow got triggered.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply