mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 06:39:33 +00:00
Merge pull request #4069 from sigmabeta/android-fix-crash
Fix crash introduced by input config code
This commit is contained in:
commit
fef0ff85b9
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)
|
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);
|
||||||
doneButton.setOnClickListener(new View.OnClickListener()
|
if (doneButton != null)
|
||||||
{
|
{
|
||||||
@Override
|
doneButton.setOnClickListener(new View.OnClickListener()
|
||||||
public void onClick(View v)
|
|
||||||
{
|
{
|
||||||
stopConfiguringControls();
|
@Override
|
||||||
}
|
public void onClick(View v)
|
||||||
});
|
{
|
||||||
|
stopConfiguringControls();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue