android: Don't pass null as root view to inflate()
authorTobias Brunner <tobias@strongswan.org>
Mon, 22 Jun 2015 15:26:10 +0000 (17:26 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 28 Jul 2015 11:27:31 +0000 (13:27 +0200)
src/frontends/android/src/org/strongswan/android/ui/ImcStateFragment.java

index 7680ee6..5b17997 100644 (file)
@@ -83,7 +83,7 @@ public class ImcStateFragment extends Fragment implements VpnStateListener
        public View onCreateView(LayoutInflater inflater, ViewGroup container,
                                                         Bundle savedInstanceState)
        {
-               View view = inflater.inflate(R.layout.imc_state_fragment, null);
+               View view = inflater.inflate(R.layout.imc_state_fragment, container, false);
 
                mButton = (LinearLayout)view.findViewById(R.id.imc_state_button);
                mButton.setOnClickListener(new OnClickListener() {