mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
Fix crash caused by trying to reference touch-screen config UI on devices without touchscreen
This commit is contained in:
parent
be9416c462
commit
8724df3b70
1 changed files with 9 additions and 6 deletions
|
@ -105,14 +105,17 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C
|
|||
public void onViewCreated(View view, Bundle savedInstanceState)
|
||||
{
|
||||
Button doneButton = (Button) view.findViewById(R.id.done_control_config);
|
||||
doneButton.setOnClickListener(new View.OnClickListener()
|
||||
if (doneButton != null)
|
||||
{
|
||||
@Override
|
||||
public void onClick(View v)
|
||||
doneButton.setOnClickListener(new View.OnClickListener()
|
||||
{
|
||||
stopConfiguringControls();
|
||||
}
|
||||
});
|
||||
@Override
|
||||
public void onClick(View v)
|
||||
{
|
||||
stopConfiguringControls();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue