shadowsocks-android icon indicating copy to clipboard operation
shadowsocks-android copied to clipboard

Android N Quick Setting Tile support

Open 109021017 opened this issue 10 years ago • 11 comments

A quick setting toggle for shadowsocks in the new notification panel would be much convenient. Android N Tile api

109021017 avatar May 04 '16 03:05 109021017

I'm tried to implement this feature a few days ago, but it's seems this feature don't have any detailed API for now.

anyofyou avatar May 04 '16 05:05 anyofyou

That sure sounds convenient. I know CyanogenMod has support for custom tiles as well. I'll look into both when I've got time. :-)

Mygod avatar May 04 '16 11:05 Mygod

After digging around for a while, I implemented a draft of quick settings tile for N preview. It can now display service status and open main activity on click. I didn't find anything to provide a custom user interface though. I expect to see this improvement in the official N release. :-)

See the commit above for more details.

Mygod avatar May 05 '16 13:05 Mygod

For some reasons, I can't seem to add custom tiles to my device (CM13). I've also tried another app and it didn't work. Postponing supporting CM APIs as well. For anyone that's interested, I've also pushed a commit into my fork to get started. (see above)

Mygod avatar May 05 '16 15:05 Mygod

Awesome! Let's keep this issue open and wait until the Android N API becomes stable.

madeye avatar May 06 '16 00:05 madeye

Just checked Android N preview 3 docs. Nothing was added for quicksettings Tile API. I have submitted an issue at Android's issue tracker. Hopefully something will happen soon. :-)

Mygod avatar May 20 '16 02:05 Mygod

The Android N APIs are now final.

109021017 avatar Jun 16 '16 01:06 109021017

Apparently nothing has changed. Merging after doing some final test.

Mygod avatar Jun 17 '16 04:06 Mygod

The quick settings tile has been changed to a quick switch button. It costs only ~4MB RAM when Shadowsocks isn't running.

It has also been tested on API level 23 where it didn't crash. :-D

Mygod avatar Jun 17 '16 06:06 Mygod

@Mygod :thumbsup:

madeye avatar Jun 17 '16 06:06 madeye

👍 So is this update gonna be released any time soon? I'm really looking forward to it.

109021017 avatar Jun 17 '16 13:06 109021017