refine UI

This commit is contained in:
Max Lv
2013-05-09 19:18:57 +08:00
parent e97438614d
commit 1b6edbbf0c
5 changed files with 68 additions and 33 deletions
@@ -50,13 +50,6 @@ class ShadowsocksReceiver extends BroadcastReceiver {
val TAG = "Shadowsocks"
def onReceive(context: Context, intent: Intent) {
if (intent != null) {
val action = intent.getAction
if ((action == Intent.ACTION_SHUTDOWN) || (action == Utils.CLOSE_ACTION)) {
context.stopService(new Intent(context, classOf[ShadowsocksService]))
return
}
}
val settings: SharedPreferences = PreferenceManager.getDefaultSharedPreferences(context)
var versionName: String = null
try {