From 08eb0e7ef5b3e19d2b5768ab9a05003ad41f9cfc Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 9 Dec 2013 21:16:41 +0100 Subject: Fix attach vs inflate layout --HG-- extra : rebase_source : 9d274f32022799450007dae251548c490f39f4bf --- src/de/blinkt/openvpn/fragments/LogFragment.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src') diff --git a/src/de/blinkt/openvpn/fragments/LogFragment.java b/src/de/blinkt/openvpn/fragments/LogFragment.java index a2a6e3c4..c289580c 100644 --- a/src/de/blinkt/openvpn/fragments/LogFragment.java +++ b/src/de/blinkt/openvpn/fragments/LogFragment.java @@ -67,6 +67,7 @@ public class LogFragment extends ListFragment implements StateListener, SeekBar. private TextView mUpStatus; private TextView mDownStatus; private TextView mConnectStatus; + private boolean mShowOptionsLayout; @Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { @@ -608,10 +609,25 @@ public class LogFragment extends ListFragment implements StateListener, SeekBar. mUpStatus = (TextView) v.findViewById(R.id.speedUp); mDownStatus = (TextView) v.findViewById(R.id.speedDown); mConnectStatus = (TextView) v.findViewById(R.id.speedStatus); + if (mShowOptionsLayout) + mOptionsLayout.setVisibility(View.VISIBLE); return v; } @Override +<<<<<<< mine +======= + public void onAttach(Activity activity) { + super.onAttach(activity); + if(getResources().getBoolean(R.bool.logSildersAlwaysVisible)) { + mShowOptionsLayout=true; + if (mOptionsLayout!= null) + mOptionsLayout.setVisibility(View.VISIBLE); + } + } + + @Override +>>>>>>> theirs public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); -- cgit v1.2.3