|
1 | 1 | --- a/src/main/java/org/libsdl/app/SDLActivity.java
|
2 | 2 | +++ b/src/main/java/org/libsdl/app/SDLActivity.java
|
3 |
| -@@ -225,6 +225,8 @@ |
| 3 | +@@ -222,6 +222,8 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh |
4 | 4 | // This is what SDL runs in. It invokes SDL_main(), eventually
|
5 | 5 | protected static Thread mSDLThread;
|
6 | 6 |
|
|
9 | 9 | protected static SDLGenericMotionListener_API12 getMotionListener() {
|
10 | 10 | if (mMotionListener == null) {
|
11 | 11 | if (Build.VERSION.SDK_INT >= 26) {
|
12 |
| -@@ -323,6 +325,15 @@ |
| 12 | +@@ -324,6 +326,15 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh |
13 | 13 | Log.v(TAG, "onCreate()");
|
14 | 14 | super.onCreate(savedInstanceState);
|
15 | 15 |
|
|
25 | 25 | try {
|
26 | 26 | Thread.currentThread().setName("SDLActivity");
|
27 | 27 | } catch (Exception e) {
|
28 |
| -@@ -824,7 +835,7 @@ |
| 28 | +@@ -835,7 +846,7 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh |
29 | 29 | Handler commandHandler = new SDLCommandHandler();
|
30 | 30 |
|
31 | 31 | // Send a message from the SDLMain thread
|
|
34 | 34 | Message msg = commandHandler.obtainMessage();
|
35 | 35 | msg.arg1 = command;
|
36 | 36 | msg.obj = data;
|
37 |
| -@@ -1302,6 +1313,20 @@ |
| 37 | +@@ -1384,6 +1395,20 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh |
38 | 38 | return SDLActivity.mSurface.getNativeSurface();
|
39 | 39 | }
|
40 | 40 |
|
41 |
| -+ /** |
| 41 | ++ /** |
42 | 42 | + * Calls turnActive() on singleton to keep loading screen active
|
43 | 43 | + */
|
44 | 44 | + public static void triggerAppConfirmedActive() {
|
|
55 | 55 | // Input
|
56 | 56 |
|
57 | 57 | /**
|
58 |
| -@@ -1795,7 +1820,7 @@ |
59 |
| - } |
| 58 | +@@ -1878,6 +1903,7 @@ class SDLMain implements Runnable { |
60 | 59 |
|
61 | 60 | Log.v("SDL", "Running main function " + function + " from library " + library);
|
62 |
| -- |
| 61 | + |
63 | 62 | + SDLActivity.mSingleton.appConfirmedActive();
|
64 | 63 | SDLActivity.nativeRunMain(library, function, arguments);
|
65 | 64 |
|
66 | 65 | Log.v("SDL", "Finished main function");
|
67 |
| -@@ -2316,7 +2341,7 @@ |
| 66 | +@@ -1935,8 +1961,7 @@ class DummyEdit extends View implements View.OnKeyListener { |
68 | 67 | public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
|
69 | 68 | ic = new SDLInputConnection(this, true);
|
70 | 69 |
|
71 |
| -- outAttrs.inputType = InputType.TYPE_CLASS_TEXT; |
72 |
| -+ outAttrs.inputType = SDLActivity.keyboardInputType; |
73 |
| - outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_EXTRACT_UI |
74 |
| - | EditorInfo.IME_FLAG_NO_FULLSCREEN /* API 11 */; |
| 70 | +- outAttrs.inputType = InputType.TYPE_CLASS_TEXT | |
| 71 | +- InputType.TYPE_TEXT_FLAG_MULTI_LINE; |
| 72 | ++ outAttrs.inputType = SDLActivity.keyboardInputType | InputType.TYPE_TEXT_FLAG_MULTI_LINE; |
| 73 | + outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_EXTRACT_UI | |
| 74 | + EditorInfo.IME_FLAG_NO_FULLSCREEN /* API 11 */; |
75 | 75 |
|
0 commit comments