Commit e98dadf0 authored by Mygod's avatar Mygod

Fix a minor UI issue

parent 4cfab40e
...@@ -352,10 +352,11 @@ class Shadowsocks extends AppCompatActivity with ServiceBoundContext { ...@@ -352,10 +352,11 @@ class Shadowsocks extends AppCompatActivity with ServiceBoundContext {
preferences.setEnabled(false) preferences.setEnabled(false)
fabProgressCircle.postDelayed(hideCircle, 100) fabProgressCircle.postDelayed(hideCircle, 100)
stat.setVisibility(View.VISIBLE) stat.setVisibility(View.VISIBLE)
if (resetConnectionTest) if (app.isNatEnabled) connectionTestText.setVisibility(View.GONE) else { if (resetConnectionTest || state != State.CONNECTED)
connectionTestText.setVisibility(View.VISIBLE) if (app.isNatEnabled) connectionTestText.setVisibility(View.GONE) else {
connectionTestText.setText(getString(R.string.connection_test_pending)) connectionTestText.setVisibility(View.VISIBLE)
} connectionTestText.setText(getString(R.string.connection_test_pending))
}
case State.STOPPING => case State.STOPPING =>
fab.setBackgroundTintList(greyTint) fab.setBackgroundTintList(greyTint)
serviceStarted = false serviceStarted = false
......
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