Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

add receive incoming calls toggle. #16

Closed
wants to merge 1 commit into from

Conversation

madmuffin1
Copy link

@madmuffin1 madmuffin1 commented Oct 17, 2017

my biggest pain, besides being asked on outgoing calls, was the missing ability to quickly enable and disable incoming calls. I added this to the existing widget.

I designed an icon, in accordance to the existing icon set, based on images from Googles Material Design.

also add configChanges="screenSize", so the widget can be resized (did not work for me on Android 7.1.2)

I attached a build for no-devs to test. Have Fun! app-debug.apk.zip

also add configChanges="screenSize", so the widget can be resized (did not work for me on Android 7.1.2)
@robert7k
Copy link
Owner

robert7k commented Nov 30, 2017

Thank you for your Merge Request.

I just tested it, and unfortunately it doesn't work. The new button toggles the setting, but this doesn't affect the phone's behavior. For example I tested like this:

  • Disable incoming calls via system UI
  • Call phone to verify: doesn't ring
  • Enable incoming calls via the widget, wait a minute to allow the phone to register in the network
  • Call phone to verify: still doesn't ring
  • Now I went back to the system UI, incoming calls are enabled. I disabled and enabled them again
  • Then called the phone and it rang.

I tested this on two devices with Android 7.0 and 7.1

Can you confirm this?

This also matches the behaviour descibed in issue #4.

@madmuffin1
Copy link
Author

madmuffin1 commented Dec 1, 2017

It seems you're right. Sorry for the inconvenience, I had the feeling this was working, but I must have been mislead.

I dug trough the android phone app source and it seems that this parameter is only used by the UI, the toggling mechanism apparently happens without an intent.

I have gotten a couple of ideas, how this could probably be achieved in that nice little widget anyways. I will try if I can get this to work during the next days.

@robert7k robert7k closed this Apr 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants