Commit Graph
609 Commits
Author SHA1 Message Date
Mygod c480137dec Remove .aidl.Config and persisting SharedPreferences (#742)
Previously a profile can exist in the following forms:

* `.database.Profile` used for everything backend;
* `.ShadowsocksSettings` which uses Preferences to provide UI to tweak settings;
* `.aidl.Config` used for IPC;
* `<data dir>/shared_pref/com.github.shadowsocks_preferences.xml` which exists for no apparent reason.

Thus long code block can be seen whose purpose is simply converting the data from one form to another. This commit intends to remove the latter two by:

1. Using profile ID and take advantage of fs r/w lock SQLite uses for IPC and better extensibility;
2. Stop persisting redundant fields in the preferences file and update database directly.
2016-07-05 01:07:09 -05:00
Mygod 432ab6cc7a Fix the bug where UI is not updated after importing 2016-07-04 10:38:49 +08:00
Max Lv 6d78b496ec Fix a typo 2016-07-03 18:35:29 +08:00
Max Lv df09d39139 Add apply-all action 2016-07-03 17:27:50 +08:00
Mygod 0b3ee8b793 Refine #735
It's impolite to ask for permission over and over again.
2016-07-01 13:26:53 +08:00
Mygod 99fd8f1e69 Fix accessibility issue for title view 2016-07-01 12:56:42 +08:00
Mygod 333ff40621 Fix #737 by using support vector drawables 2016-07-01 12:42:26 +08:00
Max Lv bfd85ecb8e Refine black list 2016-06-30 11:01:41 +08:00
Max Lv e9c912b935 Fix #735 2016-06-29 09:53:21 +08:00
Max Lv 4f13acaffe Add missing files 2016-06-27 17:53:08 +08:00
Max Lv a537a7fc0a Integrate a Barcode Scanner 2016-06-27 15:54:22 +08:00
Mygod 27bf6a2237 Fix connection test not reset in background 2016-06-18 18:26:20 +08:00
Mygod 56de231c4f Refine #530 2016-06-17 17:59:12 +08:00
Max Lv 797b3fda12 Revert "Refine #530"
This reverts commit 292f22cc86.
2016-06-17 17:58:58 +08:00
Max Lv 292f22cc86 Refine #530 2016-06-17 17:37:52 +08:00
Mygod 89df2bc715 Hide stop action in notification if the quick settings tile is present 2016-06-17 14:40:33 +08:00
Mygod 18f03aeb1d Move tile service to a separate process to save memory 2016-06-17 14:24:59 +08:00
Mygod 8e3af71696 Change tile to a quick switch 2016-06-17 13:42:12 +08:00
Mygod 048219a788 Remove screen_name resource 2016-06-17 13:27:35 +08:00
Mygod b4d3103b8f Merge branch 'n' and update to API level 24
Fix #671.
2016-06-17 13:24:56 +08:00
Mygod d350088153 Refine updateCurrentProfile 2016-06-17 13:01:09 +08:00
Max Lv 21a34e7e4e Fix #714 2016-06-14 09:44:20 +08:00
Mygod 3f201eb29b Fix connection test button too small 2016-06-09 21:16:02 +08:00
Mygod 5afb8b9cd4 Fix connection test disappearing 2016-06-05 12:20:48 +08:00
Mygod 07798c7e56 Fix imported per-app proxy settings not updating UI 2016-06-05 12:06:27 +08:00
Mygod 86f32ea67c Add app.isNatEnabled for performance and readability
Warning: This is a boring commit.
2016-05-24 11:52:06 +08:00
Mygod 461a0bda3f Remove unnecessary app.settings param in ConfigUtils.load 2016-05-24 11:46:31 +08:00
Mygod c878d4daa6 Fix DeathRecipient leaking bug 2016-05-24 11:42:12 +08:00
Mygod 9be24d7408 Use SharedPreference.Editor.apply instead of commit 2016-05-24 11:39:43 +08:00
Mygod 28ea9dd807 Use app.* instead of ShadowsocksApplication.*
Because typing ShadowsocksApplication is quite troublesome.
2016-05-24 11:37:33 +08:00
Mygod c695847403 Remove package object 2016-05-24 11:23:46 +08:00
Mygod 535561cfe4 Manage auto connect via Android API 2016-05-24 10:53:34 +08:00
Mygod a1871f792d Fix building 2016-05-21 17:51:10 +08:00
Mygod 0b7fb75b7a Obsolete code cleanup 2016-05-20 21:33:01 +08:00
Mygod 5966c9d874 Quick settings tile for N preview (draft)
Addresses #671 but has NOT fixed it yet.
2016-05-05 21:41:57 +08:00
Mygod 2c2e5790f5 Fix typo: deattach => detach
I can't believe I've been so blind.
2016-05-05 20:04:03 +08:00
Max Lv 70aa867c53 Fix a race condition 2016-05-04 08:58:46 +08:00
Max Lv 5328f5851d Fix #658 2016-04-25 20:24:55 +08:00
Mygod 1ddde094e3 Fix a crash in Parser 2016-04-25 13:12:06 +08:00
Mygod ee7ff7d5dd Use close button in ProfileManagerActivity
Because putting down arrow and back arrow together doesn't make sense.
2016-04-25 13:03:16 +08:00
Mygod 0503eeac41 Refine onServiceDisconnected 2016-04-25 12:53:38 +08:00
Mygod 985b3a6b7d Fix #649 2016-04-19 15:19:09 +08:00
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 e05abd7c24 Support one-time authentication in ss urls for sharing (#644)
This commit implements the new ss protocol proposed here: https://github.com/shadowsocks/shadowsocks-org/issues/16
2016-04-14 16:51:36 -07:00
Mygod c8bb8fc929 Fix uncancellable about dialog 2016-04-14 22:45:12 +08:00
Mygod 44a63ef1c4 Add missing "/s" in txRateText and rxRateText 2016-04-14 22:31:08 +08:00
Mygod 7d9686b5b5 UI fixes
* 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

* Refine UI.

* Change notification action button icon for hidpi device

* Fix FAB ripple

* Fix usability problem

* Fix changes not commited when snackbar being swiped

* Show import/export as action

* Drop unused drawables

* Move TaskerSettings

* Fix action icons

* Prevent switching to an invalid profile

* Fix line wrap when screen width is small
2016-04-04 13:41:31 -07: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
Lucas Liu 29c5011ce4 Refine UI. 2016-04-02 02:12:54 -05:00
Max Lv da8e41d7bb Handle exceptions when parsing per-app config string 2016-03-30 17:46:05 +08:00