drop abstract domain socket

This commit is contained in:
Max Lv
2015-08-07 22:30:09 +08:00
parent 9a841e901c
commit 97bd714beb
7 changed files with 38 additions and 35 deletions
@@ -219,6 +219,11 @@ class Shadowsocks
state = bgService.getState
// set the listener
switchButton.setOnCheckedChangeListener(Shadowsocks.this)
if (!status.getBoolean(getVersionName, false)) {
status.edit.putBoolean(getVersionName, true).commit()
recovery();
}
}
override def onServiceDisconnected(name: ComponentName) {
@@ -401,11 +406,6 @@ class Shadowsocks
def prepareStartService() {
showProgress(R.string.connecting)
spawn {
if (!status.getBoolean(getVersionName, false)) {
status.edit.putBoolean(getVersionName, true).commit()
install()
}
if (isVpnEnabled) {
val intent = VpnService.prepare(this)
if (intent != null) {