Split Settings.java into 4 files

This commit is contained in:
pelya
2013-06-24 20:39:47 +03:00
parent 5018646407
commit b21eab7cf2
22 changed files with 2733 additions and 31546 deletions

View File

@@ -117,7 +117,7 @@ public class MainActivity extends Activity
setUpStatusLabel();
Log.i("SDL", "libSDL: User clicked change phone config button");
loadedLibraries.acquireUninterruptibly();
Settings.showConfig(p, false);
SettingsMenu.showConfig(p, false);
}
};
_btn.setOnClickListener(new onClickListener(this));
@@ -394,6 +394,9 @@ public class MainActivity extends Activity
if( mGLView != null )
mGLView.exitApp();
super.onDestroy();
try{
Thread.sleep(2000); // The event is sent asynchronously, allow app to save it's state, and call exit() itself.
} catch (InterruptedException e) {}
System.exit(0);
}
@@ -1059,8 +1062,19 @@ public class MainActivity extends Activity
private EditText _screenKeyboard = null;
private String _screenKeyboardHintMessage = null;
private boolean sdlInited = false;
public Settings.TouchEventsListener touchListener = null;
public Settings.KeyEventsListener keyListener = null;
public interface TouchEventsListener
{
public void onTouchEvent(final MotionEvent ev);
}
public interface KeyEventsListener
{
public void onKeyEvent(final int keyCode);
}
public TouchEventsListener touchListener = null;
public KeyEventsListener keyListener = null;
boolean _isPaused = false;
private InputMethodManager _inputManager = null;