mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
[Android] Some minor formatting styling.
Remove unnecessary this statements.
This commit is contained in:
@ -128,10 +128,10 @@ public final class DolphinEmulator<MainActivity> extends Activity
|
|||||||
CopyAsset("dsp_rom.bin", GCDir + File.separator + "dsp_rom.bin");
|
CopyAsset("dsp_rom.bin", GCDir + File.separator + "dsp_rom.bin");
|
||||||
CopyAsset("font_ansi.bin", GCDir + File.separator + "font_ansi.bin");
|
CopyAsset("font_ansi.bin", GCDir + File.separator + "font_ansi.bin");
|
||||||
CopyAsset("font_sjis.bin", GCDir + File.separator + "font_sjis.bin");
|
CopyAsset("font_sjis.bin", GCDir + File.separator + "font_sjis.bin");
|
||||||
CopyAsset("setting-eur.txt", WiiDir + File.separator + "setting-eur.txt");
|
CopyAsset("setting-eur.txt", WiiDir + File.separator + "setting-eur.txt");
|
||||||
CopyAsset("setting-jpn.txt", WiiDir + File.separator + "setting-jpn.txt");
|
CopyAsset("setting-jpn.txt", WiiDir + File.separator + "setting-jpn.txt");
|
||||||
CopyAsset("setting-kor.txt", WiiDir + File.separator + "setting-kor.txt");
|
CopyAsset("setting-kor.txt", WiiDir + File.separator + "setting-kor.txt");
|
||||||
CopyAsset("setting-usa.txt", WiiDir + File.separator + "setting-usa.txt");
|
CopyAsset("setting-usa.txt", WiiDir + File.separator + "setting-usa.txt");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load the configuration keys set in the Dolphin ini and gfx ini files
|
// Load the configuration keys set in the Dolphin ini and gfx ini files
|
||||||
@ -188,10 +188,9 @@ public final class DolphinEmulator<MainActivity> extends Activity
|
|||||||
// Special catch for the back key
|
// Special catch for the back key
|
||||||
// Currently disabled because stopping and starting emulation is broken.
|
// Currently disabled because stopping and starting emulation is broken.
|
||||||
/*
|
/*
|
||||||
if ( event.getSource() == InputDevice.SOURCE_KEYBOARD
|
if (event.getSource() == InputDevice.SOURCE_KEYBOARD
|
||||||
&& event.getKeyCode() == KeyEvent.KEYCODE_BACK
|
&& event.getKeyCode() == KeyEvent.KEYCODE_BACK
|
||||||
&& event.getAction() == KeyEvent.ACTION_UP
|
&& event.getAction() == KeyEvent.ACTION_UP)
|
||||||
)
|
|
||||||
{
|
{
|
||||||
if (Running)
|
if (Running)
|
||||||
NativeLibrary.StopEmulation();
|
NativeLibrary.StopEmulation();
|
||||||
|
@ -101,8 +101,8 @@ public final class FolderBrowserItem implements Comparable<FolderBrowserItem>
|
|||||||
|
|
||||||
public int compareTo(FolderBrowserItem other)
|
public int compareTo(FolderBrowserItem other)
|
||||||
{
|
{
|
||||||
if(this.name != null)
|
if(name != null)
|
||||||
return this.name.toLowerCase().compareTo(other.getName().toLowerCase());
|
return name.toLowerCase().compareTo(other.getName().toLowerCase());
|
||||||
else
|
else
|
||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException();
|
||||||
}
|
}
|
||||||
|
@ -46,8 +46,6 @@ public final class GameListActivity extends Activity
|
|||||||
private SideMenuAdapter mDrawerAdapter;
|
private SideMenuAdapter mDrawerAdapter;
|
||||||
private ListView mDrawerList;
|
private ListView mDrawerList;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called from the {@link GameListFragment}.
|
* Called from the {@link GameListFragment}.
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -114,8 +114,8 @@ public final class GameListItem implements Comparable<GameListItem>
|
|||||||
|
|
||||||
public int compareTo(GameListItem o)
|
public int compareTo(GameListItem o)
|
||||||
{
|
{
|
||||||
if (this.name != null)
|
if (name != null)
|
||||||
return this.name.toLowerCase().compareTo(o.getName().toLowerCase());
|
return name.toLowerCase().compareTo(o.getName().toLowerCase());
|
||||||
else
|
else
|
||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException();
|
||||||
}
|
}
|
||||||
|
@ -47,8 +47,8 @@ public final class CPUSettingsFragment extends PreferenceFragment
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
cpuCores.setEntries(R.array.emuCoreEntriesOther);
|
cpuCores.setEntries(R.array.emuCoreEntriesOther);
|
||||||
cpuCores.setEntryValues(R.array.emuCoreValuesOther);
|
cpuCores.setEntryValues(R.array.emuCoreValuesOther);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,7 +204,6 @@ public final class InputConfigFragment extends PreferenceFragment
|
|||||||
m_activity = activity;
|
m_activity = activity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link AlertDialog} class derivative that allows the motion listener
|
* {@link AlertDialog} class derivative that allows the motion listener
|
||||||
* to be set anonymously, so the creation of an explicit class for
|
* to be set anonymously, so the creation of an explicit class for
|
||||||
|
@ -50,7 +50,7 @@ public final class SideMenuItem implements Comparable<SideMenuItem>
|
|||||||
public int compareTo(SideMenuItem o)
|
public int compareTo(SideMenuItem o)
|
||||||
{
|
{
|
||||||
if (name != null)
|
if (name != null)
|
||||||
return this.name.toLowerCase().compareTo(o.getName().toLowerCase());
|
return name.toLowerCase().compareTo(o.getName().toLowerCase());
|
||||||
else
|
else
|
||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user