Commit 702b7d91 authored by Max Lv's avatar Max Lv

fix a refresh issue

parent 770d207c
......@@ -739,6 +739,9 @@ class Shadowsocks
}
}
val container = getApplication.asInstanceOf[ShadowsocksApplication].tagContainer
if (container != null) container.refresh();
switchButton.setOnCheckedChangeListener(this)
}
......
......@@ -49,7 +49,7 @@ class ShadowsocksApplication extends Application {
override def onCreate() {
val tm = TagManager.getInstance(this)
ContainerOpener.openContainer(tm, BuildConfig.CONTAINER_ID, OpenType.PREFER_FRESH, null, new Notifier {
ContainerOpener.openContainer(tm, BuildConfig.CONTAINER_ID, OpenType.PREFER_NON_DEFAULT, null, new Notifier {
override def containerAvailable(container: Container) {
tagContainer = container
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment