Support switching to NAT/VPN without restarting the app

This commit is contained in:
Mygod
2015-11-08 18:46:42 +08:00
parent 1f0f92113d
commit 4906ce8af5
7 changed files with 31 additions and 58 deletions
@@ -133,7 +133,7 @@ class ProfileManager(settings: SharedPreferences, dbHelper: DBHelper) {
edit.putString(Key.proxied, profile.individual)
edit.putInt(Key.profileId, profile.id)
edit.putString(Key.route, profile.route)
edit.commit()
edit.apply()
profile
}