android: Don't pass null as root view to inflate()
This commit is contained in:
@@ -83,7 +83,7 @@ public class ImcStateFragment extends Fragment implements VpnStateListener
|
|||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||||
Bundle savedInstanceState)
|
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 = (LinearLayout)view.findViewById(R.id.imc_state_button);
|
||||||
mButton.setOnClickListener(new OnClickListener() {
|
mButton.setOnClickListener(new OnClickListener() {
|
||||||
|
|||||||
Reference in New Issue
Block a user