mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
commit
d55972542b
@ -27,6 +27,16 @@ public final class CoreSelection extends DialogFragment
|
||||
{
|
||||
private IconAdapter<ModuleWrapper> adapter;
|
||||
|
||||
/**
|
||||
* Creates a statically instantiated instance of CoreSelection.
|
||||
*
|
||||
* @return a statically instantiated instance of CoreSelection.
|
||||
*/
|
||||
public static CoreSelection newInstance()
|
||||
{
|
||||
return new CoreSelection();
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
|
||||
{
|
||||
|
@ -107,13 +107,11 @@ public final class DisplayRefreshRateTest extends Activity {
|
||||
}
|
||||
}
|
||||
|
||||
private GLSurfaceView surfaceView;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
Toast.makeText(this, R.string.touch_screen_with_fingers, Toast.LENGTH_LONG).show();
|
||||
surfaceView = new GLSurfaceView(this);
|
||||
final GLSurfaceView surfaceView = new GLSurfaceView(this);
|
||||
surfaceView.setEGLContextClientVersion(2);
|
||||
surfaceView.setRenderer(new Renderer(this));
|
||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||
|
@ -33,6 +33,16 @@ public final class HistorySelection extends DialogFragment
|
||||
private FragmentActivity ctx;
|
||||
private IconAdapter<HistoryWrapper> adapter;
|
||||
|
||||
/**
|
||||
* Creates a statically instantiated instance of HistorySelection.
|
||||
*
|
||||
* @return a statically instantiated instance of HistorySelection.
|
||||
*/
|
||||
public static HistorySelection newInstance()
|
||||
{
|
||||
return new HistorySelection();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState)
|
||||
{
|
||||
|
@ -347,14 +347,7 @@ public final class MainMenuFragment extends PreferenceListFragment implements On
|
||||
// Load Core Preference
|
||||
else if (prefKey.equals("loadCorePref"))
|
||||
{
|
||||
final CoreSelection coreSelection = new CoreSelection();
|
||||
coreSelection.show(getFragmentManager(), "core_selection");
|
||||
}
|
||||
// Quit RetroArch preference
|
||||
else if (prefKey.equals("quitRetroArch"))
|
||||
{
|
||||
// TODO - needs to close entire app gracefully - including
|
||||
// NativeActivity if possible
|
||||
CoreSelection.newInstance().show(getFragmentManager(), "core_selection");
|
||||
}
|
||||
// Load ROM Preference
|
||||
else if (prefKey.equals("loadRomPref"))
|
||||
@ -382,8 +375,13 @@ public final class MainMenuFragment extends PreferenceListFragment implements On
|
||||
// Load ROM (History) Preference
|
||||
else if (prefKey.equals("loadRomHistoryPref"))
|
||||
{
|
||||
final HistorySelection historySelection = new HistorySelection();
|
||||
historySelection.show(getFragmentManager(), "history_selection");
|
||||
HistorySelection.newInstance().show(getFragmentManager(), "history_selection");
|
||||
}
|
||||
// Quit RetroArch preference
|
||||
else if (prefKey.equals("quitRetroArch"))
|
||||
{
|
||||
// TODO - needs to close entire app gracefully - including
|
||||
// NativeActivity if possible
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user