diff options
author | Arne Schwabe <arne@rfc2549.org> | 2015-10-25 20:17:54 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2015-10-25 22:31:48 +0100 |
commit | 4d6a12b09a2f0524820fb8f0a82eab625e401062 (patch) | |
tree | 9283416b1e10272fac0598d8fc927c108041f2ec /main/src | |
parent | abc715ce6643f7db02eb93db64e33900a431165c (diff) |
Fix config crash on < 4.4, Version 0.6.43v0.6.43
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/fragments/ShowConfigFragment.java | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/fragments/ShowConfigFragment.java b/main/src/main/java/de/blinkt/openvpn/fragments/ShowConfigFragment.java index 50df86c1..5a5a846f 100644 --- a/main/src/main/java/de/blinkt/openvpn/fragments/ShowConfigFragment.java +++ b/main/src/main/java/de/blinkt/openvpn/fragments/ShowConfigFragment.java @@ -34,15 +34,15 @@ public class ShowConfigFragment extends Fragment { mfabButton = (ImageButton) v.findViewById(R.id.share_config); - if (mfabButton!=null) - mfabButton.setOnClickListener( new View.OnClickListener() { - @Override - public void onClick(View v) { - shareConfig(); - } - }); - mfabButton.setVisibility(View.INVISIBLE); - + if (mfabButton!=null) { + mfabButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + shareConfig(); + } + }); + mfabButton.setVisibility(View.INVISIBLE); + } return v; } @@ -57,7 +57,8 @@ public class ShowConfigFragment extends Fragment { @Override public void run() { cv.setText(configtext); - mfabButton.setVisibility(View.VISIBLE); + if (mfabButton!=null) + mfabButton.setVisibility(View.VISIBLE); } }); |