Commit Graph
240 Commits
Author SHA1 Message Date
Mygod 202bd2c984 Add support for Android TV
This commit adds an app banner in Android TV and introduces several changes including refactoring AppManager to make all features accessible with D-pad navigation.

Currently this app has the exact same user interface on Android TV as on normal Android devices but one should create a TV-specific user interface in the future.

P.S. Only tested in Android emulator. More testing might be needed.
2016-04-16 06:38:01 -07:00
Mygod 44a63ef1c4 Add missing "/s" in txRateText and rxRateText 2016-04-14 22:31:08 +08:00
Mygod 8453267996 New UI polishment
* Refine exceptions handling when parsing per-app config string

* Remove redundant profiles Preference

* Move Network Traffic to title bar

* Add ripple to title text

* Animate using animateLayoutChanges

* Hide connection test in NAT mode
2016-04-03 09:33:14 -07:00
Max Lv 17e84e58d8 Refine AdView 2016-03-18 10:03:51 +08:00
Mygod ee48c0773c Automatic service restart 2016-03-12 13:40:13 +08:00
Mygod 8fa2e60cf3 Remove redundant bindToService
Please do not create methods casually.
2016-03-11 20:41:46 +08:00
Mygod 8657ef87f4 Crash recovery for NAT mode
Bugfix: when NAT process is killed, Internet access is gone. Reproduce with:

    adb shell killall com.github.shadowsocks:nat

One circumstance it cannot recover from is when updating to a new version, where both processes are killed at the same time. But a reset will be executed when the new version is launched.
2016-03-11 20:39:01 +08:00
Mygod 270d436017 Refine ShadowsocksDeathRecipient and ServiceBoundContext 2016-03-11 20:17:23 +08:00
chentao fc3d26d626 Fix binder ipc issue when process died unexpected 2016-02-25 00:04:57 +08:00
Mygod 10e3b211e3 Ask user to refrain from further using NAT mode 2016-02-08 14:40:49 +08:00
Mygod cd5c2ef8ef Fix rate display disappearing in StatusPreference
It turns out that `onCreateView` gets called every time `setSummary` is invoked, and thus restoring texts for `TextView` is mandatory.
2016-02-08 13:47:30 +08:00
Mygod 5a84854881 Refine layout using GridView 2016-02-08 12:53:21 +08:00
Mygod 0cf1585712 Refine traffic stat layout 2016-02-07 18:41:50 +08:00
Mygod c7dd9aeeca Replace placeholder with brand new icon 2016-02-07 02:00:15 +08:00
Max Lv 95e214ef11 Fix a typo 2016-01-25 20:31:12 +08:00
Max Lv 217ed797d9 Output VPN error to logcat #556 2016-01-25 20:28:11 +08:00
Max Lv d337f0e2e4 Bump version 2016-01-24 17:21:03 +08:00
Max Lv 713ff53030 Refine Traffic Stat 2016-01-24 16:11:18 +08:00
Max Lv 172c0b240f Fix #545 2016-01-20 16:49:08 +08:00
Max Lv 79d1ccba23 Workaround for the crash caused by ProgressCircle
It's safe to ignore the exception throwed by hide().
Because the init state of the ProgressCircle is hidden.
2016-01-05 17:28:38 +08:00
Mygod f9667d767e Fix dynamic traffic stat in profile selector
Fix #495
2015-12-29 20:27:30 +08:00
Mygod b6fc013a06 Unregister preference change callback in onDestroy instead of onPause
Fix #496
2015-12-27 10:17:07 +08:00
Mygod 4d7bf8d707 Reduce battery usage - Unregister callbacks onStop 2015-12-26 23:46:18 +08:00
Mygod 92c8e0856c Hide adview if default profile is no longer active 2015-12-26 00:00:11 +08:00
Mygod 8cf37954d7 Revert "Use brighter accent color for FAB"
This reverts commit edd5fb4a4c.
2015-12-25 19:08:38 +08:00
Mygod c93a0348ad Fix isDestroyed is missing on API 16 2015-12-25 16:37:30 +08:00
Mygod 0cf509833a Fix dismissing ProgressDialog after activity destroyed 2015-12-25 16:33:44 +08:00
Mygod 9fb0639f86 Move preference related logic to ShadowsocksSettings 2015-12-25 16:07:07 +08:00
Mygod 164becfed0 Implement dragging to move profiles 2015-12-25 15:51:18 +08:00
Max Lv ce023bf49b Hide connection test in NAT mode 2015-12-16 16:13:22 +08:00
Max Lv 0b6fe8a4da Refine connection test 2015-12-16 13:26:49 +08:00
Mygod 62a572ee3a Implement HTTP client test
Fix #479
2015-12-15 19:39:57 +08:00
Mygod 7e6bc0d740 Provide a better workaround for hiding FAB
Fix #471
2015-12-08 22:34:27 +08:00
Mygod edd5fb4a4c Use brighter accent color for FAB 2015-12-08 22:08:20 +08:00
Mygod ad831aa1f4 Persist package names in individual/proxied 2015-12-06 21:20:30 +08:00
Mygod 93084f0ed0 Ask for ROOT only when it's needed 2015-12-06 20:04:41 +08:00
Mygod ac98caa4b4 Move code 2015-12-06 00:07:01 +08:00
Mygod 8c2690c0fb Fix #468 2015-12-06 00:02:29 +08:00
Max Lv 362ec7ebc8 bump version 2015-12-03 11:02:48 +08:00
Mygod 1eda4c47a4 Removed the switch for now 2015-11-24 21:41:09 +08:00
Mygod c1730e4fa6 Add a toggle for showing traffic in notification.
TODO: Disabling it causes weird behavior. :-(
2015-11-24 21:16:08 +08:00
Mygod 5e0d52324b Add traffic to notification 2015-11-24 19:25:41 +08:00
Max Lv 19c4910794 ignore all exceptions when upgrading the preference 2015-11-24 14:48:15 +08:00
Max Lv 8b0b39cba7 fix #444 2015-11-24 13:23:16 +08:00
Mygod da3690d18c Fix #441 2015-11-23 21:21:47 +08:00
Max Lv 4f5edc8b8b Use progressCircle to indicate the disable status of switch 2015-11-21 18:56:46 +08:00
Mygod 407ba8beaa Add realtime traffic in profiles selector 2015-11-21 16:04:55 +08:00
Mygod 408e74384e Debugging an HTC device 2015-11-20 00:39:47 +08:00
Mygod 52cd6d1576 Merge branch 'master' of https://github.com/shadowsocks/shadowsocks-android 2015-11-19 14:34:02 +08:00
Mygod 24c1497a6d Fix flashing 2015-11-19 13:49:31 +08:00