Skip to content

Commit 3c56afe

Browse files
committed
Converted Application to an interface and renamed the old Application to
LegacyApplication. This is a breaking change for any class extending Application directly. And regardless, if you refer to Application then you will need to clean build your app... and any of your dependencies that also refer to Application. Basically, anything using an AppState will need to be clean built against the next alpha.
1 parent ab6fb03 commit 3c56afe

File tree

14 files changed

+922
-675
lines changed

14 files changed

+922
-675
lines changed

jme3-android/src/main/java/com/jme3/app/AndroidHarness.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt
5050
/**
5151
* The jme3 application object
5252
*/
53-
protected Application app = null;
53+
protected LegacyApplication app = null;
5454

5555
/**
5656
* Sets the desired RGB size for the surfaceview. 16 = RGB565, 24 = RGB888.
@@ -178,7 +178,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt
178178
private boolean inConfigChange = false;
179179

180180
private class DataObject {
181-
protected Application app = null;
181+
protected LegacyApplication app = null;
182182
}
183183

184184
@Override
@@ -241,7 +241,7 @@ public void onCreate(Bundle savedInstanceState) {
241241
try {
242242
if (app == null) {
243243
@SuppressWarnings("unchecked")
244-
Class<? extends Application> clazz = (Class<? extends Application>) Class.forName(appClass);
244+
Class<? extends LegacyApplication> clazz = (Class<? extends LegacyApplication>) Class.forName(appClass);
245245
app = clazz.newInstance();
246246
}
247247

jme3-android/src/main/java/com/jme3/app/AndroidHarnessFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public class AndroidHarnessFragment extends Fragment implements
207207
protected ImageView splashImageView = null;
208208
final private String ESCAPE_EVENT = "TouchEscape";
209209
private boolean firstDrawFrame = true;
210-
private Application app = null;
210+
private LegacyApplication app = null;
211211
private int viewWidth = 0;
212212
private int viewHeight = 0;
213213

@@ -258,7 +258,7 @@ public void onCreate(Bundle savedInstanceState) {
258258
try {
259259
if (app == null) {
260260
@SuppressWarnings("unchecked")
261-
Class<? extends Application> clazz = (Class<? extends Application>) Class.forName(appClass);
261+
Class<? extends LegacyApplication> clazz = (Class<? extends LegacyApplication>) Class.forName(appClass);
262262
app = clazz.newInstance();
263263
}
264264

0 commit comments

Comments
 (0)