Fix crash caused by trying to reference touch-screen config UI on devices without touchscreen
This commit is contained in:
parent
be9416c462
commit
8724df3b70
|
@ -105,6 +105,8 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C
|
||||||
public void onViewCreated(View view, Bundle savedInstanceState)
|
public void onViewCreated(View view, Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
Button doneButton = (Button) view.findViewById(R.id.done_control_config);
|
Button doneButton = (Button) view.findViewById(R.id.done_control_config);
|
||||||
|
if (doneButton != null)
|
||||||
|
{
|
||||||
doneButton.setOnClickListener(new View.OnClickListener()
|
doneButton.setOnClickListener(new View.OnClickListener()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
|
@ -114,6 +116,7 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onStart()
|
public void onStart()
|
||||||
|
|
Loading…
Reference in New Issue