diff options
| -rw-r--r-- | src/de/blinkt/openvpn/fragments/LogFragment.java | 10 | 
1 files changed, 7 insertions, 3 deletions
diff --git a/src/de/blinkt/openvpn/fragments/LogFragment.java b/src/de/blinkt/openvpn/fragments/LogFragment.java index a2a6e3c4..6d4031a3 100644 --- a/src/de/blinkt/openvpn/fragments/LogFragment.java +++ b/src/de/blinkt/openvpn/fragments/LogFragment.java @@ -602,9 +602,6 @@ public class LogFragment extends ListFragment implements StateListener, SeekBar.          mLogLevelSlider.setOnSeekBarChangeListener(this); -        if(getResources().getBoolean(R.bool.logSildersAlwaysVisible)) -            mOptionsLayout.setVisibility(View.VISIBLE); -          mUpStatus = (TextView) v.findViewById(R.id.speedUp);          mDownStatus = (TextView) v.findViewById(R.id.speedDown);          mConnectStatus = (TextView) v.findViewById(R.id.speedStatus); @@ -612,6 +609,13 @@ public class LogFragment extends ListFragment implements StateListener, SeekBar.      }      @Override +    public void onAttach(Activity activity) { +        super.onAttach(activity); +        if(getResources().getBoolean(R.bool.logSildersAlwaysVisible)) +            mOptionsLayout.setVisibility(View.VISIBLE); +    } + +    @Override  	public void onCreate(Bundle savedInstanceState) {  		super.onCreate(savedInstanceState);  | 
